Add AT detection from the GTNH buildscript

This commit is contained in:
Raven Szewczyk 2023-04-24 11:28:24 +01:00
parent 6b9432c49b
commit 0ca81e47aa

View file

@ -112,6 +112,16 @@ if (project.use_mixins.toBoolean()) {
}
}
if (project.use_access_transformer.toBoolean()) {
for (File at : sourceSets.getByName("main").resources.files) {
if (at.name.toLowerCase().endsWith("_at.cfg")) {
atsFound = true
tasks.deobfuscateMergedJarToSrg.accessTransformerFiles.from(at)
tasks.srgifyBinpatchedJar.accessTransformerFiles.from(at)
}
}
}
processResources {
// this will ensure that this task is redone when the versions change.
inputs.property 'version', project.version