Skip to content

Commit ea915e9

Browse files
committed
Upload to Bintray and Maven Central
Previously, an update to the build system took a stab at uploading releases to Bintray and them promoting them to Maven Central. Unsurprisingly, without a release to test against, this didn't work on the first try. The first change required a move of the bintray configuration from the top-level project to each subproject that would be published. Unlike before, this is now a subset of projects excluding things like the integration tests. Second, this change finishes improvements to the Maven POM in order to meet the Maven Central requirements for publication. Specifically three developers were added to the POMs in order for Sonatype to reach them if necessary.
1 parent 325f07f commit ea915e9

File tree

2 files changed

+51
-36
lines changed

2 files changed

+51
-36
lines changed

bintray.gradle

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -17,45 +17,42 @@
1717
if (project.hasProperty('bintrayUser') && project.hasProperty('bintrayKey') &&
1818
project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) {
1919

20-
bintray {
21-
user = project.property('bintrayUser')
22-
key = project.property('bintrayKey')
23-
24-
publish = true
25-
26-
pkg {
27-
repo = 'RSocket'
28-
name = 'rsocket-java'
29-
licenses = ['Apache-2.0']
30-
31-
issueTrackerUrl = 'https://github.com/rsocket/rsocket-java/issues'
32-
websiteUrl = 'https://github.com/rsocket/rsocket-java'
33-
vcsUrl = 'https://github.com/rsocket/rsocket-java.git'
34-
35-
githubRepo = 'rsocket/rsocket-java' //Optional Github repository
36-
githubReleaseNotesFile = 'README.md' //Optional Github readme file
37-
38-
version {
39-
name = project.version
40-
released = new Date()
41-
vcsTag = project.version
42-
43-
gpg {
44-
sign = true
45-
}
46-
47-
mavenCentralSync {
48-
user = project.property('sonatypeUsername')
49-
password = project.property('sonatypePassword')
50-
}
51-
}
52-
}
53-
}
54-
5520
subprojects {
5621
plugins.withId('com.jfrog.bintray') {
5722
bintray {
58-
publications('maven')
23+
user = project.property('bintrayUser')
24+
key = project.property('bintrayKey')
25+
26+
publications = ['maven']
27+
publish = true
28+
29+
pkg {
30+
repo = 'RSocket'
31+
name = 'rsocket-java'
32+
licenses = ['Apache-2.0']
33+
34+
issueTrackerUrl = 'https://github.com/rsocket/rsocket-java/issues'
35+
websiteUrl = 'https://github.com/rsocket/rsocket-java'
36+
vcsUrl = 'https://github.com/rsocket/rsocket-java.git'
37+
38+
githubRepo = 'rsocket/rsocket-java' //Optional Github repository
39+
githubReleaseNotesFile = 'README.md' //Optional Github readme file
40+
41+
version {
42+
name = project.version
43+
released = new Date()
44+
vcsTag = project.version
45+
46+
gpg {
47+
sign = true
48+
}
49+
50+
mavenCentralSync {
51+
user = project.property('sonatypeUsername')
52+
password = project.property('sonatypePassword')
53+
}
54+
}
55+
}
5956
}
6057
}
6158
}

build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,24 @@ subprojects {
130130
}
131131
}
132132

133+
developers {
134+
developer {
135+
id 'robertroeser'
136+
name 'Robert Roeser'
137+
email 'robert@netifi.com'
138+
}
139+
developer {
140+
id 'rdegnan'
141+
name 'Ryland Degnan'
142+
email 'ryland@netifi.com'
143+
}
144+
developer {
145+
id 'yschimke'
146+
name 'Yuri Schimke'
147+
email 'yuri@schimke.ee'
148+
}
149+
}
150+
133151
scm {
134152
connection 'scm:git:https://github.com/rsocket/rsocket-java.git'
135153
developerConnection 'scm:git:https://github.com/rsocket/rsocket-java.git'

0 commit comments

Comments
 (0)