From 2e8769c2b21e34b63fb6189eb187bfd675ca96e1 Mon Sep 17 00:00:00 2001 From: Wagyourtail Date: Sat, 20 Jul 2024 16:45:03 -0500 Subject: [PATCH] add path sensitivity --- .../xyz/wagyourtail/jvmdg/gradle/flags/DowngradeFlags.kt | 5 ++--- gradle-plugin/test-downgrade/build.gradle.kts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gradle-plugin/src/main/kotlin/xyz/wagyourtail/jvmdg/gradle/flags/DowngradeFlags.kt b/gradle-plugin/src/main/kotlin/xyz/wagyourtail/jvmdg/gradle/flags/DowngradeFlags.kt index a4444070..01686818 100644 --- a/gradle-plugin/src/main/kotlin/xyz/wagyourtail/jvmdg/gradle/flags/DowngradeFlags.kt +++ b/gradle-plugin/src/main/kotlin/xyz/wagyourtail/jvmdg/gradle/flags/DowngradeFlags.kt @@ -6,9 +6,7 @@ import org.gradle.api.file.FileCollection import org.gradle.api.provider.ListProperty import org.gradle.api.provider.Property import org.gradle.api.provider.SetProperty -import org.gradle.api.tasks.Input -import org.gradle.api.tasks.InputFiles -import org.gradle.api.tasks.Optional +import org.gradle.api.tasks.* import xyz.wagyourtail.jvmdg.cli.Flags import xyz.wagyourtail.jvmdg.logging.Logger import xyz.wagyourtail.jvmdg.util.toOpcode @@ -29,6 +27,7 @@ interface DowngradeFlags : TransformParameters { * default is null */ @get:InputFiles + @get:PathSensitive(PathSensitivity.ABSOLUTE) @get:Optional val apiJar: ListProperty diff --git a/gradle-plugin/test-downgrade/build.gradle.kts b/gradle-plugin/test-downgrade/build.gradle.kts index 12856ed8..6ec8b11c 100644 --- a/gradle-plugin/test-downgrade/build.gradle.kts +++ b/gradle-plugin/test-downgrade/build.gradle.kts @@ -89,7 +89,7 @@ sourceSets { val jvmdg = extensions.getByType(JVMDowngraderExtension::class.java) if (project.hasProperty("runningTest")) { - jvmdg.apiJar = project.file("../../java-api/build/libs/jvmdowngrader-java-api-${props.getProperty("version")}.jar") + jvmdg.apiJar = listOf(project.file("../../java-api/build/libs/jvmdowngrader-java-api-${props.getProperty("version")}.jar")) } val downgrade by configurations.creating