diff --git a/src/main/groovy/net/researchgate/release/ReleasePlugin.groovy b/src/main/groovy/net/researchgate/release/ReleasePlugin.groovy index 9bfd1879..507deaf5 100644 --- a/src/main/groovy/net/researchgate/release/ReleasePlugin.groovy +++ b/src/main/groovy/net/researchgate/release/ReleasePlugin.groovy @@ -104,6 +104,10 @@ class ReleasePlugin extends PluginHelper implements Plugin { 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