Browse Source

KAFKA-1245 the jar files and pom are not being signed so nexus is failing to publish them patch by Joe Stein; Reviewed by Jun Rao

pull/223/head
Joe Stein 11 years ago
parent
commit
dc5a993e67
  1. 40
      build.gradle
  2. 4
      gradle.properties

40
build.gradle

@ -34,25 +34,31 @@ subprojects { @@ -34,25 +34,31 @@ subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'signing'
uploadArchives {
repositories {
// To test locally, replace mavenUrl in gradle.properties to file://localhost/tmp/myRepo/
mavenDeployer {
repository(url: "${mavenUrl}") {
authentication(userName: "${mavenUsername}", password: "${mavenPassword}")
}
afterEvaluate {
pom.artifactId = "${archivesBaseName}"
pom.project {
name 'Apache Kafka'
packaging 'jar'
url 'http://kafka.apache.org'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
signing {
sign configurations.archives
// To test locally, replace mavenUrl in ~/.gradle/gradle.properties to file://localhost/tmp/myRepo/
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "${mavenUrl}") {
authentication(userName: "${mavenUsername}", password: "${mavenPassword}")
}
afterEvaluate {
pom.artifactId = "${archivesBaseName}"
pom.project {
name 'Apache Kafka'
packaging 'jar'
url 'http://kafka.apache.org'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}

4
gradle.properties

@ -18,7 +18,3 @@ version=0.8.1 @@ -18,7 +18,3 @@ version=0.8.1
scalaVersion=2.8.0
task=build
#mavenUrl=file://localhost/tmp/maven
mavenUrl=http://your.maven.repository
mavenUsername=your.username
mavenPassword=your.password

Loading…
Cancel
Save