build: use supported API to get working directory (#2976)

This commit is contained in:
xehpuk 2023-09-11 11:54:06 +02:00 committed by GitHub
parent 910b0323f8
commit f6ac4daa81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ tasks {
val androidHome = System.getenv("ANDROID_HOME") ?: throw GradleException("ANDROID_HOME not found")
val d8 = "${androidHome}/build-tools/33.0.1/d8"
val input = configurations.archives.get().allArtifacts.files.files.first().absolutePath
val work = File("${buildDir}/libs")
val work = layout.buildDirectory.dir("libs").get().asFile
exec {
workingDir = work