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-38
  • Loading branch information
rainboyan committed Jan 5, 2025
1 parent 090488d commit 01fc44e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ext {
}


version project.projectVersion
version = project.projectVersion

apply plugin:'idea'

Expand All @@ -42,12 +42,12 @@ nexusPublishing {

subprojects { project->
if (project.name.startsWith('grace-plugin')) {
group "org.graceframework.plugins"
group = "org.graceframework.plugins"
}
else {
group "org.graceframework"
group = "org.graceframework"
}
version project.projectVersion
version = project.projectVersion

if (project.name.startsWith('examples') || project.name.endsWith('docs')) {
return
Expand Down
3 changes: 0 additions & 3 deletions grace-async-rxjava/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@ dependencies {
api project(":grace-async-core")
implementation "io.reactivex:rxjava:$rxJavaVersion"
}



6 changes: 3 additions & 3 deletions publishing/mavenCentral.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ publishing {
maven(MavenPublication) {
def projectName = project.name.split('-')*.capitalize().join(' ')
if (project.name.startsWith('grace-plugin')) {
artifactId(project.name - 'grace-plugin-')
artifactId = project.name - 'grace-plugin-'
}
else {
artifactId project.name
artifactId = project.name
}
from components.java

Expand Down Expand Up @@ -85,7 +85,7 @@ jar {

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

Expand Down

0 comments on commit 01fc44e

Please sign in to comment.