From e367312774aeec5ff0b1b85a0ce7aad6822acae6 Mon Sep 17 00:00:00 2001 From: Jaroslaw Pietraszek Date: Tue, 18 Apr 2023 10:30:43 +0200 Subject: [PATCH] Change casing --- .../src/main/kotlin/io/wttech/gradle/config/prop/StringProp.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/kotlin/io/wttech/gradle/config/prop/StringProp.kt b/plugin/src/main/kotlin/io/wttech/gradle/config/prop/StringProp.kt index eb990a9..e7a08d3 100644 --- a/plugin/src/main/kotlin/io/wttech/gradle/config/prop/StringProp.kt +++ b/plugin/src/main/kotlin/io/wttech/gradle/config/prop/StringProp.kt @@ -121,7 +121,7 @@ class StringProp(group: Group, name: String) : Prop(group, name) { init { when { // name-based smart defaults - listOf("path", "directory", "URL").any { name.endsWith(it, true) } -> path() + listOf("path", "directory", "url").any { name.endsWith(it, true) } -> path() listOf("token", "password", "key").any { name.endsWith(it, true) } -> password() listOf("enabled", "disabled").any { name.endsWith(it, true) } -> checkbox() }