diff --git a/reckon-gradle/src/main/java/org/ajoberstar/reckon/gradle/ReckonPlugin.java b/reckon-gradle/src/main/java/org/ajoberstar/reckon/gradle/ReckonPlugin.java index bbc0ea5..7852589 100644 --- a/reckon-gradle/src/main/java/org/ajoberstar/reckon/gradle/ReckonPlugin.java +++ b/reckon-gradle/src/main/java/org/ajoberstar/reckon/gradle/ReckonPlugin.java @@ -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()); diff --git a/reckon-gradle/src/main/java/org/ajoberstar/reckon/gradle/ReckonSettingsPlugin.java b/reckon-gradle/src/main/java/org/ajoberstar/reckon/gradle/ReckonSettingsPlugin.java index 8bb4ef0..1cd4e9a 100644 --- a/reckon-gradle/src/main/java/org/ajoberstar/reckon/gradle/ReckonSettingsPlugin.java +++ b/reckon-gradle/src/main/java/org/ajoberstar/reckon/gradle/ReckonSettingsPlugin.java @@ -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());