From 93f3c222d8f52beee572bb1f7e567c0b9558d70a Mon Sep 17 00:00:00 2001 From: Abhinay Agarwal Date: Wed, 18 Sep 2024 15:03:52 +0530 Subject: [PATCH] Migrate to publish-plugin (#1287) --- build.gradle | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/build.gradle b/build.gradle index f222aa01..8f9c52ab 100644 --- a/build.gradle +++ b/build.gradle @@ -3,8 +3,8 @@ import java.time.Duration plugins { id 'java' id 'signing' - id 'io.codearte.nexus-staging' version '0.21.1' - id 'de.marcphilipp.nexus-publish' version '0.4.0' + id 'maven-publish' + id 'io.github.gradle-nexus.publish-plugin' version '2.0.0' } group = "com.gluonhq" @@ -105,16 +105,13 @@ signing { nexusPublishing { repositories { - sonatype() + sonatype { + username = project.hasProperty('sonatypeUsername') ? project.property('sonatypeUsername') : '' + password = project.hasProperty('sonatypePassword') ? project.property('sonatypePassword') : '' + } } - // credentials are shared from staging plugin - clientTimeout = Duration.ofMinutes(5) - connectTimeout = Duration.ofMinutes(5) -} - -nexusStaging { - username = project.hasProperty('sonatypeUsername') ? project.property('sonatypeUsername') : '' - password = project.hasProperty('sonatypePassword') ? project.property('sonatypePassword') : '' - numberOfRetries = 30 - delayBetweenRetriesInMillis = 10000 -} + transitionCheckOptions { + maxRetries = 100 + delayBetween = Duration.ofSeconds(10) + } +} \ No newline at end of file