[testng] 86/160: Upload snapshots to maven automatically.

Eugene Zhukov eugene-guest at moszumanska.debian.org
Tue Aug 18 10:22:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

eugene-guest pushed a commit to annotated tag testng-6.9.5
in repository testng.

commit 9cbc3aea903edbbb94ec1e4eef5fd23af65ab93c
Author: Cedric Beust <cedric at beust.com>
Date:   Sat Jun 6 07:38:56 2015 -0700

    Upload snapshots to maven automatically.
---
 .travis.yml              | 1 +
 gradle/publishing.gradle | 8 +++++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index c99a6b5..c8db3fb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,3 +5,4 @@ jdk:
   - openjdk7
 
 script: ./gradlew clean test
+after_success: ./gradlew uploadArchives
diff --git a/gradle/publishing.gradle b/gradle/publishing.gradle
index d5e0a44..4f67ea3 100644
--- a/gradle/publishing.gradle
+++ b/gradle/publishing.gradle
@@ -95,12 +95,14 @@ signing {
 uploadArchives {
     repositories {
         mavenDeployer {
+            beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
+
             repository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
-                authentication(userName: '3rszImfP', password: 'uAOidhWfeyQ6K/48UOuxPPL0EFj5Z99P0lU8zsL/BtgT')
+                authentication(userName: System.getenv('SONATYPE_USER'), password: System.getenv('SONATYPE_PASSWORD'))
             }
             pom.version = project.version
-            pom.artifactId = 'org.testng'
-            pom.groupId = 'testng'
+            pom.artifactId = 'testng'
+            pom.groupId = 'org.testng'
         }
     }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/testng.git



More information about the pkg-java-commits mailing list