Skip to content

Commit

Permalink
#379 Remove deprecated property use (#390)
Browse files Browse the repository at this point in the history
* Remove deprecated property use
  • Loading branch information
IRus authored Jul 8, 2024
1 parent 244f86e commit 7ce9b9d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import org.gradle.api.Task
import org.gradle.api.plugins.BasePlugin
import org.gradle.api.tasks.GradleBuild
import org.gradle.api.tasks.TaskState
import org.gradle.util.GradleVersion

class ReleasePlugin extends PluginHelper implements Plugin<Project> {

Expand Down Expand Up @@ -104,7 +105,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
startParameter.settingsFile = project.getGradle().startParameter.settingsFile
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 7ce9b9d

Please sign in to comment.