Skip to content

Commit 43609e0

Browse files
Merge pull request #605 from watson-developer-cloud/blake
metadata, pom signing and catch-all java-sdk module
2 parents 907d56d + 4856dda commit 43609e0

File tree

17 files changed

+765
-98
lines changed

17 files changed

+765
-98
lines changed

alchemy/build.gradle

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,44 @@ processResources {
7272
}
7373

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

conversation/build.gradle

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,44 @@ processResources {
7272
}
7373

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

core/build.gradle

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,44 @@ processResources {
9595
}
9696

9797
uploadArchives {
98-
repositories.mavenDeployer {
99-
repository(url: "http://oss.sonatype.org/service/local/staging/deploy/maven2/") {
100-
authentication(userName: System.env.CI_DEPLOY_USERNAME, password: System.env.CI_DEPLOY_PASSWORD)
101-
}
102-
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/"){
103-
authentication(userName: System.env.CI_DEPLOY_USERNAME, password: System.env.CI_DEPLOY_PASSWORD)
98+
repositories {
99+
mavenDeployer {
100+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
101+
102+
repository(url: "http://oss.sonatype.org/service/local/staging/deploy/maven2/") {
103+
authentication(userName: System.env.CI_DEPLOY_USERNAME, password: System.env.CI_DEPLOY_PASSWORD)
104+
}
105+
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/"){
106+
authentication(userName: System.env.CI_DEPLOY_USERNAME, password: System.env.CI_DEPLOY_PASSWORD)
107+
}
108+
pom.project {
109+
name 'core'
110+
packaging 'jar'
111+
// optionally artifactId can be defined here
112+
description 'Client library to use the IBM Watson Services'
113+
url 'https://www.ibm.com/watson/developercloud'
114+
115+
scm {
116+
connection 'scm:git:[email protected]:watson-developer-cloud/java-sdk.git'
117+
developerConnection 'scm:git:[email protected]:watson-developer-cloud/java-sdk.git'
118+
url 'https://github.com/watson-developer-cloud/java-sdk'
119+
}
120+
121+
licenses {
122+
license {
123+
name 'The Apache License, Version 2.0'
124+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
125+
}
126+
}
127+
128+
developers {
129+
developer {
130+
id 'german'
131+
name 'German Attanasio'
132+
133+
}
134+
}
135+
}
104136
}
105137
}
106138
}

dialog/build.gradle

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,44 @@ processResources {
105105
}
106106

107107
uploadArchives {
108-
repositories.mavenDeployer {
109-
repository(url: "http://oss.sonatype.org/service/local/staging/deploy/maven2/") {
110-
authentication(userName: System.env.CI_DEPLOY_USERNAME, password: System.env.CI_DEPLOY_PASSWORD)
111-
}
112-
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/"){
113-
authentication(userName: System.env.CI_DEPLOY_USERNAME, password: System.env.CI_DEPLOY_PASSWORD)
108+
repositories {
109+
mavenDeployer {
110+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
111+
112+
repository(url: "http://oss.sonatype.org/service/local/staging/deploy/maven2/") {
113+
authentication(userName: System.env.CI_DEPLOY_USERNAME, password: System.env.CI_DEPLOY_PASSWORD)
114+
}
115+
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/"){
116+
authentication(userName: System.env.CI_DEPLOY_USERNAME, password: System.env.CI_DEPLOY_PASSWORD)
117+
}
118+
pom.project {
119+
name 'dialog'
120+
packaging 'jar'
121+
// optionally artifactId can be defined here
122+
description 'Client library to use the IBM Watson Dialog Service'
123+
url 'https://www.ibm.com/watson/developercloud/dialog.html'
124+
125+
scm {
126+
connection 'scm:git:[email protected]:watson-developer-cloud/java-sdk.git'
127+
developerConnection 'scm:git:[email protected]:watson-developer-cloud/java-sdk.git'
128+
url 'https://github.com/watson-developer-cloud/java-sdk'
129+
}
130+
131+
licenses {
132+
license {
133+
name 'The Apache License, Version 2.0'
134+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
135+
}
136+
}
137+
138+
developers {
139+
developer {
140+
id 'german'
141+
name 'German Attanasio'
142+
143+
}
144+
}
145+
}
114146
}
115147
}
116148
}

discovery/build.gradle

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,44 @@ processResources {
7777
}
7878

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

document-conversion/build.gradle

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,44 @@ processResources {
7373
}
7474

7575
uploadArchives {
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

Comments
 (0)