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'
|
2015-03-20 14:18:29 +01:00
|
|
|
|
2015-06-18 21:26:08 +02:00
|
|
|
sourceCompatibility = 1.7
|
|
|
|
group = 'ch.dissem.jabit'
|
2015-06-20 10:00:47 +02:00
|
|
|
version = '0.1.3-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-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-06-21 08:58:49 +02:00
|
|
|
// Note: to build the project, you'll either need to
|
|
|
|
if (hasProperty('signing.keyId')) {
|
|
|
|
signing {
|
|
|
|
sign configurations.archives
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 'Jabit'
|
|
|
|
packaging 'jar'
|
|
|
|
url 'https://github.com/Dissem/Jabit'
|
|
|
|
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
name 'Christian Basler'
|
|
|
|
email 'chrigu.meyer@gmail.com'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-03-20 14:18:29 +01:00
|
|
|
}
|