2015-06-21 08:58:49 +02:00
|
|
|
subprojects {
|
2015-06-18 21:26:08 +02:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'signing'
|
2016-02-03 17:32:04 +01:00
|
|
|
apply plugin: 'jacoco'
|
2015-03-20 14:18:29 +01:00
|
|
|
|
2015-06-18 21:26:08 +02:00
|
|
|
sourceCompatibility = 1.7
|
|
|
|
group = 'ch.dissem.jabit'
|
2016-02-02 21:23:15 +01:00
|
|
|
version = '1.0.1'
|
2015-07-03 14:47:25 +02:00
|
|
|
|
|
|
|
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
|
2015-03-20 14:18:29 +01:00
|
|
|
|
2015-06-18 21:26:08 +02:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
2015-03-20 14:18:29 +01:00
|
|
|
|
2015-10-15 15:34:04 +02:00
|
|
|
test {
|
|
|
|
testLogging {
|
|
|
|
exceptionFormat = 'full'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-18 21:26:08 +02:00
|
|
|
task javadocJar(type: Jar) {
|
|
|
|
classifier = 'javadoc'
|
|
|
|
from javadoc
|
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar) {
|
|
|
|
classifier = 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives javadocJar, sourcesJar
|
|
|
|
}
|
|
|
|
|
2015-07-03 14:47:25 +02:00
|
|
|
signing {
|
2016-02-03 07:52:22 +01:00
|
|
|
required { isReleaseVersion && project.getProperties().get("signing.keyId")?.length() > 0 }
|
2015-07-03 14:47:25 +02:00
|
|
|
sign configurations.archives
|
2015-06-21 08:58:49 +02:00
|
|
|
}
|
|
|
|
|
2015-07-03 14:47:25 +02:00
|
|
|
uploadArchives {
|
|
|
|
repositories {
|
|
|
|
mavenDeployer {
|
|
|
|
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
|
2015-06-21 08:58:49 +02:00
|
|
|
|
2015-07-03 14:47:25 +02:00
|
|
|
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
|
|
|
|
authentication(userName: ossrhUsername, password: ossrhPassword)
|
|
|
|
}
|
2015-06-21 08:58:49 +02:00
|
|
|
|
2015-07-03 14:47:25 +02:00
|
|
|
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
|
|
|
|
authentication(userName: ossrhUsername, password: ossrhPassword)
|
|
|
|
}
|
2015-06-21 08:58:49 +02:00
|
|
|
|
2015-07-03 14:47:25 +02:00
|
|
|
pom.project {
|
|
|
|
name 'Jabit'
|
|
|
|
packaging 'jar'
|
|
|
|
url 'https://github.com/Dissem/Jabit'
|
2015-06-21 08:58:49 +02:00
|
|
|
|
2015-07-03 14:47:25 +02:00
|
|
|
scm {
|
|
|
|
connection 'scm:git:https://github.com/Dissem/Jabit.git'
|
|
|
|
developerConnection 'scm:git:git@github.com:Dissem/Jabit.git'
|
|
|
|
url 'https://github.com/Dissem/Jabit.git'
|
|
|
|
}
|
|
|
|
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name 'The Apache License, Version 2.0'
|
|
|
|
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
2015-06-21 08:58:49 +02:00
|
|
|
}
|
2015-07-03 14:47:25 +02:00
|
|
|
}
|
2015-06-21 08:58:49 +02:00
|
|
|
|
2015-07-03 14:47:25 +02:00
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
name 'Christian Basler'
|
|
|
|
email 'chrigu.meyer@gmail.com'
|
2015-06-21 08:58:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-02-03 17:32:04 +01:00
|
|
|
|
|
|
|
jacocoTestReport {
|
|
|
|
reports {
|
|
|
|
xml.enabled = true
|
|
|
|
html.enabled = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
check.dependsOn jacocoTestReport
|
|
|
|
}
|