64 lines
1.4 KiB
Groovy
64 lines
1.4 KiB
Groovy
apply plugin: 'maven'
|
|
apply plugin: 'signing'
|
|
|
|
task javadocJar(type: Jar) {
|
|
classifier = 'javadoc'
|
|
from javadoc
|
|
}
|
|
|
|
task sourcesJar(type: Jar) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
artifacts {
|
|
archives javadocJar, sourcesJar
|
|
}
|
|
|
|
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: sonatypeUsername, password: sonatypePassword)
|
|
}
|
|
|
|
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
|
|
authentication(userName: sonatypeUsername, password: sonatypePassword)
|
|
}
|
|
|
|
pom.project {
|
|
name "$project.name"
|
|
packaging 'jar'
|
|
description 'RESTful Contract Verifier'
|
|
url 'http://codearte.github.io/accurest'
|
|
|
|
scm {
|
|
connection 'scm:git:git@github.com:Codearte/accurest.git'
|
|
developerConnection 'scm:git:git@github.com:Codearte/accurest.git'
|
|
url 'https://github.com/Codearte/accurest'
|
|
}
|
|
|
|
licenses {
|
|
license {
|
|
name 'The Apache License, Version 2.0'
|
|
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
}
|
|
}
|
|
|
|
developers {
|
|
developer {
|
|
id 'jkubrynski'
|
|
name 'Jakub Kubrynski'
|
|
email 'jk ATT codearte DOTT io'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |