File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed
Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 6060 NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
6161 IMAGE=${IMAGE_NAME}:${NEW_VERSION}
6262 echo "Releasing new version ${NEW_VERSION} of $IMAGE"
63- ./gradlew -Pversion=${NEW_VERSION} publish closeAndReleaseRepository -Dorg.gradle.internal.publish.checksums.insecure=true --info
63+ ./gradlew -Pversion=${NEW_VERSION} publish publishToSonatype closeAndReleaseStagingRepository -Dorg.gradle.internal.publish.checksums.insecure=true --info
6464 ./gradlew jibDockerBuild --image="${IMAGE}"
6565 docker push "${IMAGE}"
6666
Original file line number Diff line number Diff line change @@ -29,8 +29,7 @@ plugins {
2929 id(" com.google.cloud.tools.jib" ) version " 3.2.1"
3030 id(" com.github.johnrengelman.shadow" ) version " 7.1.2"
3131 id(" net.researchgate.release" ) version " 2.8.1"
32- id(" io.codearte.nexus-staging" ) version " 0.30.0"
33- id(" de.marcphilipp.nexus-publish" ) version " 0.4.0"
32+ id(" io.github.gradle-nexus.publish-plugin" ) version " 1.1.0"
3433 `java- library`
3534 `maven- publish`
3635 signing
@@ -90,17 +89,19 @@ dependencies {
9089 testImplementation(" io.ktor:ktor-server-test-host:$ktorVersion " )
9190}
9291
93- nexusStaging {
94- username = System .getenv(" SONATYPE_USERNAME" )
95- password = System .getenv(" SONATYPE_PASSWORD" )
96- packageGroup = " no.nav"
97- delayBetweenRetriesInMillis = 5000
98- }
99-
10092nexusPublishing {
93+ packageGroup.set(" no.nav" )
10194 clientTimeout.set(Duration .ofMinutes(2 ))
10295 repositories {
103- sonatype()
96+ sonatype {
97+ username.set(System .getenv(" SONATYPE_USERNAME" ))
98+ password.set(System .getenv(" SONATYPE_PASSWORD" ))
99+ }
100+ }
101+
102+ transitionCheckOptions {
103+ maxRetries.set(40 )
104+ delayBetween.set(Duration .ofMillis(5000 ))
104105 }
105106}
106107
You can’t perform that action at this time.
0 commit comments