Skip to content

Commit

Permalink
Update build scripts to avoid deprecation warnings with Gradle 8
Browse files Browse the repository at this point in the history
Closes gh-28
  • Loading branch information
rainboyan committed Jan 6, 2025
1 parent a537a5a commit 2934852
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ buildscript {
mavenCentral()
gradlePluginPortal()
if (projectVersion.endsWith("SNAPSHOT")) {
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
maven {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
}
}
dependencies {
Expand All @@ -18,8 +20,8 @@ ext."signing.password" = project.hasProperty("signing.password") ? project.getPr
ext."signing.secretKeyRingFile" = project.hasProperty("signing.secretKeyRingFile") ? project.getProperty('signing.secretKeyRingFile') : ("${System.properties['user.home']}${File.separator}.gnupg${File.separator}secring.gpg")
ext.isReleaseVersion = !projectVersion.endsWith("SNAPSHOT")

version projectVersion
group "org.graceframework.profiles"
version = projectVersion
group = "org.graceframework.profiles"

apply plugin: "eclipse"
apply plugin: "idea"
Expand All @@ -33,7 +35,9 @@ repositories {
// mavenLocal()
mavenCentral()
if (!isReleaseVersion) {
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
maven {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
}
}

Expand Down Expand Up @@ -127,7 +131,7 @@ nexusPublishing {

afterEvaluate {
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("publish") }
required = isReleaseVersion && gradle.taskGraph.hasTask("publish")
sign publishing.publications.maven
}
}

0 comments on commit 2934852

Please sign in to comment.