@@ -58,6 +58,7 @@ configure(webAuthn4JSpringSecurityLibraryProjects) {
5858 apply plugin : ' java-library'
5959 apply plugin : ' jacoco'
6060 apply plugin : " maven-publish"
61+ apply plugin : ' com.jfrog.bintray'
6162 apply plugin : " com.jfrog.artifactory"
6263
6364 javadoc {
@@ -147,6 +148,20 @@ configure(webAuthn4JSpringSecurityLibraryProjects) {
147148 def mavenCentralUser = getVariable(' MAVEN_CENTRAL_USER' , ' mavenCentralUser' )
148149 def mavenCentralPassword = getVariable(' MAVEN_CENTRAL_PASSWORD' , ' mavenCentralPassword' )
149150
151+ task bintrayGpgSign(){
152+ group = " publishing"
153+ doLast{
154+ signArtifactsOnBintray(bintrayUser, bintrayToken);
155+ }
156+ }
157+
158+ task bintrayMavenCentralSync(){
159+ group = " publishing"
160+ doLast{
161+ syncMavenCentralToBintray(bintrayUser, bintrayToken);
162+ }
163+ }
164+
150165 artifactory {
151166 contextUrl = ' http://oss.jfrog.org/artifactory/simple/'
152167 publish {
@@ -165,6 +180,35 @@ configure(webAuthn4JSpringSecurityLibraryProjects) {
165180 skip = ! " ${ webAuthn4JSpringSecurityVersion} " . endsWith(" -SNAPSHOT" ) // Publish only when it is SNAPSHOT release
166181 }
167182
183+ bintray {
184+ user = bintrayUser
185+ key = bintrayToken
186+ configurations = [' archives' ]
187+ publish = true
188+ dryRun = ! (" ${ webAuthn4JSpringSecurityVersion} " . endsWith(" .RELEASE" )) // Publish only when it is RELEASE release
189+ publications = [' standard' ]
190+ pkg {
191+ userOrg = " webauthn4j"
192+ repo = " webauthn4j"
193+ name = project. name
194+ desc = project. description
195+ licenses = [' Apache-2.0' ]
196+ vcsUrl = githubUrl
197+ version {
198+ name = " ${ webAuthn4JSpringSecurityVersion} "
199+ released = new Date ()
200+ vcsTag = " ${ webAuthn4JSpringSecurityVersion} "
201+ gpg {
202+ sign = true
203+ }
204+ // Optional configuration for Maven Central sync of the version
205+ mavenCentralSync {
206+ user = mavenCentralUser
207+ password = mavenCentralPassword
208+ }
209+ }
210+ }
211+ }
168212}
169213
170214configure(sampleAppProjects) {
0 commit comments