Charles Durham
10/08/2025, 11:19 PMephemient
10/09/2025, 3:28 AMephemient
10/09/2025, 3:28 AMephemient
10/09/2025, 3:30 AMVampire
10/09/2025, 6:34 AMdoLast action to the task generating the files and in there normalize the generated files. A doLast action is part of the task action, so snapshots and fingerprints get it.
Otter than that, what @ephemient said. :-)Charles Durham
10/09/2025, 5:27 PM* Using:
this.tasks.withType<AidlCompile>().configureEach {
doLast {
val outputDir = sourceOutputDir.get().asFile
if (outputDir.exists()) {
outputDir
.walkTopDown()
.filter { it.isFile && it.extension == "java" }
.forEach { javaFile ->
val filteredLines = javaFile.readLines().filterNot { it.contains("* Using:") }
javaFile.writeText(filteredLines.joinToString("\n"))
}
}
}
}Vampire
10/09/2025, 7:49 PMCharles Durham
10/09/2025, 7:51 PM