@@ -73,12 +73,44 @@ processResources {
7373}
7474
7575uploadArchives {
76- repositories. mavenDeployer {
77- repository(url : " http://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
78- authentication(userName : System . env. CI_DEPLOY_USERNAME , password : System . env. CI_DEPLOY_PASSWORD )
79- }
80- snapshotRepository(url : " https://oss.sonatype.org/content/repositories/snapshots/" ){
81- authentication(userName : System . env. CI_DEPLOY_USERNAME , password : System . env. CI_DEPLOY_PASSWORD )
76+ repositories {
77+ mavenDeployer {
78+ beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
79+
80+ repository(url : " http://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
81+ authentication(userName : System . env. CI_DEPLOY_USERNAME , password : System . env. CI_DEPLOY_PASSWORD )
82+ }
83+ snapshotRepository(url : " https://oss.sonatype.org/content/repositories/snapshots/" ){
84+ authentication(userName : System . env. CI_DEPLOY_USERNAME , password : System . env. CI_DEPLOY_PASSWORD )
85+ }
86+ pom. project {
87+ name ' document-conversion'
88+ packaging ' jar'
89+ // optionally artifactId can be defined here
90+ description ' Client library to use the IBM Watson Document Conversion Service'
91+ url ' https://www.ibm.com/watson/developercloud/document-conversion.html'
92+
93+ scm {
94+ connection
' scm:git:[email protected] :watson-developer-cloud/java-sdk.git' 95+ developerConnection
' scm:git:[email protected] :watson-developer-cloud/java-sdk.git' 96+ url ' https://github.com/watson-developer-cloud/java-sdk'
97+ }
98+
99+ licenses {
100+ license {
101+ name ' The Apache License, Version 2.0'
102+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
103+ }
104+ }
105+
106+ developers {
107+ developer {
108+ id ' german'
109+ name ' German Attanasio'
110+ 111+ }
112+ }
113+ }
82114 }
83115 }
84116}
0 commit comments