Add missing task inputs (#4565)

The ANDROID_HOME and ANDROID_SDK_ROOT environment variables are accessed
by the test suite. They need to be registered as task inputs so Gradle's
up-to-date checks work correctly when the environment variable values
change.
This commit is contained in:
Matthew Haughton
2022-02-06 16:34:49 +11:00
committed by GitHub
parent a04debc51f
commit 1e406db9bb

View File

@@ -37,6 +37,14 @@ testing {
)
)
}
targets {
all {
testTask.configure {
inputs.property("androidSdkRoot", System.getenv("ANDROID_SDK_ROOT")).optional(true)
inputs.property("androidHome", System.getenv("ANDROID_HOME")).optional(true)
}
}
}
}
register("functionalTest", JvmTestSuite::class) {
useJUnitJupiter(libs.versions.junit.get())