Skip to content

Commit

Permalink
Remove use of forUseAtConfigurationTime
Browse files Browse the repository at this point in the history
This is a deprecated function. Fixes #198.
  • Loading branch information
ajoberstar committed Oct 21, 2023
1 parent c994145 commit 84191d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public void apply(Project project) {

// composite builds have a parent Gradle build and can't trust the values of these properties
if (project.getGradle().getParent() == null) {
extension.getScope().set(project.getProviders().gradleProperty(SCOPE_PROP).forUseAtConfigurationTime());
extension.getStage().set(project.getProviders().gradleProperty(STAGE_PROP).forUseAtConfigurationTime());
extension.getScope().set(project.getProviders().gradleProperty(SCOPE_PROP));
extension.getStage().set(project.getProviders().gradleProperty(STAGE_PROP));
}

var sharedVersion = new DelayedVersion(extension.getVersion());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public void apply(Settings settings) {

// composite builds have a parent Gradle build and can't trust the values of these properties
if (settings.getGradle().getParent() == null) {
extension.getScope().set(settings.getProviders().gradleProperty(SCOPE_PROP).forUseAtConfigurationTime());
extension.getStage().set(settings.getProviders().gradleProperty(STAGE_PROP).forUseAtConfigurationTime());
extension.getScope().set(settings.getProviders().gradleProperty(SCOPE_PROP));
extension.getStage().set(settings.getProviders().gradleProperty(STAGE_PROP));
}

var sharedVersion = new DelayedVersion(extension.getVersion());
Expand Down

0 comments on commit 84191d2

Please sign in to comment.