Skip to content

Commit

Permalink
Add Gradle version check to prevent usage of deprecated settingsFile …
Browse files Browse the repository at this point in the history
…property
  • Loading branch information
IRus committed Jul 8, 2024
1 parent cd1177a commit de5ca59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/groovy/net/researchgate/release/ReleasePlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ class ReleasePlugin extends PluginHelper implements Plugin<Project> {
startParameter.projectProperties.putAll(project.getGradle().startParameter.projectProperties)
startParameter.projectProperties.put('release.releasing', "true")
startParameter.projectDir = project.projectDir
if (GradleVersion.current() < GradleVersion.version("9.0")) {
// Setting custom settings file for the build has been deprecated.
startParameter.settingsFile = project.getGradle().startParameter.settingsFile
}
startParameter.gradleUserHomeDir = project.getGradle().startParameter.gradleUserHomeDir
buildName = project.name

Expand Down

0 comments on commit de5ca59

Please sign in to comment.