From 682d1b35ab5e7f3985337e2a2283ffeda7beab38 Mon Sep 17 00:00:00 2001 From: Nathan Brizendine Date: Mon, 11 Dec 2023 10:44:26 +0100 Subject: [PATCH] Update signing configuration and bump version --- RELEASING.md | 9 ++++----- gradle.properties | 2 +- gradle/binary_compatibility.gradle | 2 +- gradle/gradle-mvn-push.gradle | 5 +++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index aae9453..35e6c03 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -12,12 +12,11 @@ https://github.com/Codearte/gradle-nexus-staging-plugin#server-credentials. 1. Run `./gradlew clean test` and make sure everything passes. 1. Run `./gradlew publish -PSONATYPE_NEXUS_USERNAME= -PSONATYPE_NEXUS_PASSWORD=` and follow the instructions. - 1. Enter the release version when prompted or press Enter for default (Please double check the version if you do so). - 1. Enter the next development version when prompted or press Enter for default (Please double check the version if you do so). - 1. When the build has successfully completed, run `./gradlew closeAndReleaseRepo`. If this times out - or fails some other way, log in manually to https://oss.sonatype.org/ and either complete the - release through closing and releasing the staging repository, or by cleaning up and rerunning. + 1. When the build has successfully completed, log in manually to https://oss.sonatype.org/ and + either complete the release through closing and releasing the staging repository, + or by cleaning up and rerunning. 1. Add a description of the new release at https://github.com/spotify/mobius/releases. 1. Once the new set of artifacts is available on https://repo.maven.apache.org/maven2/com/spotify/mobius/, update the `baselineVersion` property in [binary_compatibility.gradle](gradle/binary_compatibility.gradle) to the version that was just released. + 1. Update the version in gradle.properties in the master branch to the next version \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 2f92d46..eab6b21 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=1.5.13 +version=1.5.14 GROUP=com.spotify.mobius diff --git a/gradle/binary_compatibility.gradle b/gradle/binary_compatibility.gradle index 234b583..b882c3d 100644 --- a/gradle/binary_compatibility.gradle +++ b/gradle/binary_compatibility.gradle @@ -15,7 +15,7 @@ buildscript { } File baselineJar = null -def baselineVersion = "1.5.12" +def baselineVersion = "1.5.13" def projectGroup = project.group def projectName = project.name diff --git a/gradle/gradle-mvn-push.gradle b/gradle/gradle-mvn-push.gradle index b0a2707..b4dd564 100644 --- a/gradle/gradle-mvn-push.gradle +++ b/gradle/gradle-mvn-push.gradle @@ -36,6 +36,7 @@ afterEvaluate { publications { if (!isAndroid) { mavenJava(MavenPublication) { + from components.java groupId = GROUP @@ -117,8 +118,8 @@ afterEvaluate { } signing { - required { isReleaseBuild() && gradle.taskGraph.hasTask("publish") } - sign configurations.archives + required { isReleaseBuild() } + sign publishing.publications } if (JavaVersion.current().isJava8Compatible()) {