1 Star 0 Fork 3

镜幻/yavijava

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 3.68 KB
一键复制 编辑 原始数据 按行查看 历史
Michael Rice 提交于 2017-05-01 01:01 . Bump version number for release
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'groovy'
group = "com.toastcoders"
archivesBaseName = "yavijava"
version = '6.0.05'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
targetCompatibility = 1.6
sourceCompatibility = 1.6
repositories {
mavenCentral()
}
dependencies {
compile 'org.apache.directory.studio:org.dom4j.dom4j:1.6.1'
compile 'log4j:log4j:1.2.17'
compile 'org.apache.httpcomponents:httpclient:4.3.5'
compile 'org.projectlombok:lombok:1.16.6'
testCompile 'javax.servlet:javax.servlet-api:3.1.0'
testCompile 'junit:junit-dep:4.11'
testCompile 'junit:junit:4.12'
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
testCompile 'cglib:cglib-nodep:3.1'
testCompile 'org.objenesis:objenesis:2.1'
}
sourceSets {
main {
java {
}
}
intTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
groovy {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
}
test {
java {
}
groovy {
}
}
}
configurations {
intTestCompile.extendsFrom testCompile
intTestRuntime.extendsFrom testRuntime
}
task intTest(type:Test){
description = "Run integration tests (located in src/intTest/...)."
testClassesDir = project.sourceSets.intTest.output.classesDir
classpath = project.sourceSets.intTest.runtimeClasspath
}
test {
testLogging {
events 'started', 'passed'
}
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
def ossrhUsername = hasProperty('ossrhUsername') ? ossrhUsername : ''
def ossrhPassword = hasProperty('ossrhPassword') ? ossrhPassword : ''
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'yavijava'
packaging 'jar'
// optionally artifactId can be defined here
description 'Java library for VMware vSphere'
url 'https://github.com/yavijava/yavijava'
scm {
connection 'scm:git:https://github.com/yavijava/yavijava.git'
developerConnection 'scm:git:https://github.com/yavijava/yavijava.git'
url 'https://github.com/yavijava/yavijava'
}
licenses {
license {
name 'BSD'
url 'http://opensource.org/licenses/BSD-3-Clause'
}
}
developers {
developer {
id 'michaelrice'
name 'Michael Rice'
}
}
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/skyblack/yavijava.git
[email protected]:skyblack/yavijava.git
skyblack
yavijava
yavijava
gradle

搜索帮助