Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#379 Remove deprecated property use #390

Merged
merged 4 commits into from
Jul 8, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +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
startParameter.settingsFile = project.getGradle().startParameter.settingsFile
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please wrap this in an if that checks the gradle version to not break existing usages of it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Hillkorn updated

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

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
Loading