From 84191d218fe10644cd9dc08cc7d09d7e06aa30c4 Mon Sep 17 00:00:00 2001 From: Andrew Oberstar Date: Sat, 21 Oct 2023 14:36:21 -0500 Subject: [PATCH] Remove use of forUseAtConfigurationTime This is a deprecated function. Fixes #198. --- .../main/java/org/ajoberstar/reckon/gradle/ReckonPlugin.java | 4 ++-- .../org/ajoberstar/reckon/gradle/ReckonSettingsPlugin.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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());