Skip to content

Commit f045fbd

Browse files
committed
Add sync with maven central when publishing a new library version.
1 parent d7be854 commit f045fbd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: publish.gradle

+8-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ publishing {
6767
}
6868

6969
bintray {
70-
user = project.hasProperty('bintrayUser') ? project.bintrayUser : System.getenv('BINTRAY_USERNAME')
71-
key = project.hasProperty('bintrayKey') ? project.bintrayKey : System.getenv('BINTRAY_KEY')
70+
user = System.getenv('BINTRAY_USERNAME')
71+
key = System.getenv('BINTRAY_KEY')
7272
publications = ['mavenJava']
7373
pkg {
7474
repo = "$project.repository"
@@ -85,6 +85,12 @@ bintray {
8585
desc = "$project.description"
8686
released = new Date()
8787
vcsTag = "$project.website"
88+
mavenCentralSync {
89+
sync = true
90+
user = System.getenv('OSS_USERNAME')
91+
password = System.getenv('OSS_KEY')
92+
close = '1'
93+
}
8894
}
8995
}
9096
}

0 commit comments

Comments
 (0)