Skip to content

Commit

Permalink
add path sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jul 20, 2024
1 parent 9393ae8 commit 2e8769c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,6 +27,7 @@ interface DowngradeFlags : TransformParameters {
* default is null
*/
@get:InputFiles
@get:PathSensitive(PathSensitivity.ABSOLUTE)
@get:Optional
val apiJar: ListProperty<File>

Expand Down
2 changes: 1 addition & 1 deletion gradle-plugin/test-downgrade/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e8769c

Please sign in to comment.