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-45
  • Loading branch information
rainboyan committed Jan 5, 2025
1 parent 5a05bf5 commit 88ae026
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 @@ -3,7 +3,9 @@ buildscript {
mavenCentral()
gradlePluginPortal()
if (project.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 @@ -17,8 +19,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 project.projectVersion
group "org.graceframework.plugins"
version = project.projectVersion
group = "org.graceframework.plugins"

apply plugin: "eclipse"
apply plugin: "idea"
Expand All @@ -32,7 +34,9 @@ apply plugin: "signing"
repositories {
mavenCentral()
if (project.projectVersion.endsWith('-SNAPSHOT')) {
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
maven {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
}
}

Expand Down Expand Up @@ -177,7 +181,7 @@ nexusPublishing {

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

0 comments on commit 88ae026

Please sign in to comment.