From d28ab201e3d950e7e2edccd6bf72a2f004235034 Mon Sep 17 00:00:00 2001 From: Heok Hong Low Date: Thu, 8 Dec 2022 18:00:57 +0800 Subject: [PATCH 1/2] Override args in yarnSetup --- .../kotlin/com/github/gradle/node/yarn/task/YarnSetupTask.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/com/github/gradle/node/yarn/task/YarnSetupTask.kt b/src/main/kotlin/com/github/gradle/node/yarn/task/YarnSetupTask.kt index d2590935..002ec080 100644 --- a/src/main/kotlin/com/github/gradle/node/yarn/task/YarnSetupTask.kt +++ b/src/main/kotlin/com/github/gradle/node/yarn/task/YarnSetupTask.kt @@ -16,6 +16,9 @@ abstract class YarnSetupTask : NpmSetupTask() { group = NodePlugin.YARN_GROUP description = "Setup a specific version of Yarn to be used by the build." } + + @get:Input + override val args = objects.listProperty() @Input override fun getVersion(): Provider { From d9ad813bdbc4903e3b49e5f9cac8d3c48d5e9214 Mon Sep 17 00:00:00 2001 From: Heok Hong Low Date: Thu, 8 Dec 2022 18:04:03 +0800 Subject: [PATCH 2/2] Make args open in npmSetup --- src/main/kotlin/com/github/gradle/node/npm/task/NpmSetupTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/github/gradle/node/npm/task/NpmSetupTask.kt b/src/main/kotlin/com/github/gradle/node/npm/task/NpmSetupTask.kt index 67092f8d..0ebd293c 100644 --- a/src/main/kotlin/com/github/gradle/node/npm/task/NpmSetupTask.kt +++ b/src/main/kotlin/com/github/gradle/node/npm/task/NpmSetupTask.kt @@ -36,7 +36,7 @@ abstract class NpmSetupTask : BaseTask() { val projectHelper = ProjectApiHelper.newInstance(project) @get:Input - val args = objects.listProperty() + protected open val args = objects.listProperty() @get:Input val download = nodeExtension.download