From 165c29cb4be5e43648f5f73fc041d3b076dde5e5 Mon Sep 17 00:00:00 2001 From: Jean Khechfe Date: Tue, 2 Aug 2022 13:44:57 +0200 Subject: [PATCH] Revert #65 changes --- gradle.properties | 2 +- .../neva/gradle/fork/config/properties/Property.kt | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/gradle.properties b/gradle.properties index 55eea04..ab95ef0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=7.0.11 +version=7.0.9 release.useAutomaticVersion=true # Performance tuning diff --git a/src/main/kotlin/com/neva/gradle/fork/config/properties/Property.kt b/src/main/kotlin/com/neva/gradle/fork/config/properties/Property.kt index 4479569..4ac43ec 100644 --- a/src/main/kotlin/com/neva/gradle/fork/config/properties/Property.kt +++ b/src/main/kotlin/com/neva/gradle/fork/config/properties/Property.kt @@ -86,20 +86,6 @@ class Property( } } - fun force(flag: Boolean, value: String, vararg names: String) = force(flag, value, names.toList()) - - fun force(flag: Boolean, value: String, patterns: List) { - for (pattern in patterns) { - val others = others(pattern) - for (property in others) { - if (flag) { - property.value = value - } - property.enabled = !flag - } - } - } - fun other(name: String) = context.get(name) fun others(pattern: String) = context.find(pattern)