RetroFuturaGradle
RetroFuturaGradle copied to clipboard
Investigate artifact transforms for non-RFG subprojects
The deobf transformer does not get invoked, leading to errors like:
- Configuration ':core:runtimeElements' variant resources:
- Unmatched attributes:
- Provides artifactType 'java-resources-directory' but the consumer didn't ask for it
- Doesn't say anything about com.gtnewhorizons.retrofuturagradle.obfuscation (required 'mcp')
- Provides org.gradle.category 'library' but the consumer didn't ask for it
- Provides org.gradle.dependency.bundling 'external' but the consumer didn't ask for it
- Provides org.gradle.jvm.environment 'standard-jvm' but the consumer didn't ask for it
- Provides org.gradle.jvm.version '8' but the consumer didn't ask for it
- Provides org.gradle.libraryelements 'resources' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
- Provides org.jetbrains.kotlin.platform.type 'jvm' but the consumer didn't ask for it
- Doesn't say anything about rfgDeobfuscatorTransformed (required 'true')
The following variants were also considered but didn't match the requested attributes:
- Configuration ':core:runtimeElements':
- Incompatible because this component declares attribute 'rfgDeobfuscatorTransformed' with value 'false' and the consumer needed attribute 'rfgDeobfuscatorTransformed' with value 'true'
- Other compatible attribute:
- Doesn't say anything about com.gtnewhorizons.retrofuturagradle.obfuscation (required 'mcp')
Workaround in 1.3.21+:
# in gradle.properties
rfg.disableDependencyDeobfuscation=true
Workaround for pre-1.3.21:
afterEvaluate {
project.getDependencies().getArtifactTypes().getByName("jar").getAttributes()
.attribute(com.gtnewhorizons.retrofuturagradle.modutils.ModUtils.DEOBFUSCATOR_TRANSFORMED, Boolean.TRUE);
}