Updated Branches: refs/heads/0.8.1 879e3e770 -> cb23e5d91
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 Project: http://git-wip-us.apache.org/repos/asf/kafka/repo Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/cb23e5d9 Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/cb23e5d9 Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/cb23e5d9 Branch: refs/heads/0.8.1 Commit: cb23e5d915ce14ca25d74abb55b329b83054500b Parents: 879e3e7 Author: Joe Stein <[email protected]> Authored: Fri Feb 14 14:14:23 2014 -0500 Committer: Joe Stein <[email protected]> Committed: Fri Feb 14 14:14:23 2014 -0500 ---------------------------------------------------------------------- build.gradle | 40 +++++++++++++++++++++++----------------- gradle.properties | 4 ---- 2 files changed, 23 insertions(+), 21 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kafka/blob/cb23e5d9/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index 19bbbae..0d30b8e 100644 --- a/build.gradle +++ b/build.gradle @@ -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' + } } } } http://git-wip-us.apache.org/repos/asf/kafka/blob/cb23e5d9/gradle.properties ---------------------------------------------------------------------- diff --git a/gradle.properties b/gradle.properties index ad7a2f0..447ee44 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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
