Created
December 22, 2020 16:32
-
-
Save LunNova/44fb57ca251a8bb884c6d856af530768 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run in MappingTest subdirectory of https://github.com/MinimallyCorrect/Mapping/tree/transform-only-runs-for-default-attr | |
Must run publishToMavenLocal in parent directory first. | |
Note how transform only runs in test case -PTEST=3 where the default value of the attr can be transformed to the requested value. | |
Even case 4 fails which is where the default value is set as in case 3, but a value the same as that default value is also set in the gradle module metadata. | |
$ for i in 0 1 2 3 4; do echo; echo "Testing with -PTEST=$i"; echo; ./gradlew.bat -PTEST=$i --no-build-cache build; done | |
Testing with -PTEST=0 | |
> Configure project : | |
Applied -PTEST= settings 0 | |
moduleMetadataAttrValue: net.fabricmc:intermediary:1.15.2:intermediary | |
component metadata rule used: false | |
default attr value overridden: null | |
This build is expected to fail with the error "TODO: Actually transform.". If build succeeds, transforms weren't ran as expected. | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:official -> net.fabricmc:intermediary:1.15.2:intermediary | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:intermediary -> net.fabricmc:intermediary:1.15.2:official | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:intermediary -> net.fabricmc:yarn:1.15.2+build.9:v2:named | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:yarn:1.15.2+build.9:v2:named -> net.fabricmc:intermediary:1.15.2:intermediary | |
> Task :compileJava FAILED | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Execution failed for task ':compileJava'. | |
> Could not resolve all files for configuration ':compileClasspath'. | |
> Could not resolve net.minecraft:minecraft:1.15.2. | |
Required by: | |
project : | |
> No matching variant of net.minecraft:minecraft:1.15.2 was found. The consumer was configured to find an API of a library compatible with Java 11, preferably in the form of class files, and its dependencies declared externally, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' but: | |
- Variant 'apiElements' capability net.minecraft:minecraft:1.15.2 declares an API of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally: | |
- Incompatible because this component declares a component, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:intermediary:1.15.2:intermediary' and the consumer needed a component, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' | |
- Variant 'runtimeElements' capability net.minecraft:minecraft:1.15.2 declares a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally: | |
- Incompatible because this component declares a component, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:intermediary:1.15.2:intermediary' and the consumer needed a component, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. | |
* Get more help at https://help.gradle.org | |
BUILD FAILED in 783ms | |
1 actionable task: 1 executed | |
Testing with -PTEST=1 | |
> Configure project : | |
Applied -PTEST= settings 1 | |
moduleMetadataAttrValue: null | |
component metadata rule used: true | |
default attr value overridden: null | |
This build is expected to fail with the error "TODO: Actually transform.". If build succeeds, transforms weren't ran as expected. | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:official -> net.fabricmc:intermediary:1.15.2:intermediary | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:intermediary -> net.fabricmc:intermediary:1.15.2:official | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:intermediary -> net.fabricmc:yarn:1.15.2+build.9:v2:named | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:yarn:1.15.2+build.9:v2:named -> net.fabricmc:intermediary:1.15.2:intermediary | |
> Task :compileJava FAILED | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Execution failed for task ':compileJava'. | |
> Could not resolve all files for configuration ':compileClasspath'. | |
> Could not resolve net.minecraft:minecraft:1.15.2. | |
Required by: | |
project : | |
> No matching variant of net.minecraft:minecraft:1.15.2 was found. The consumer was configured to find an API of a library compatible with Java 11, preferably in the form of class files, and its dependencies declared externally, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' but: | |
- Variant 'compile' capability net.minecraft:minecraft:1.15.2 declares an API of a library, packaged as a jar: | |
- Incompatible because this component declares a component, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:intermediary:1.15.2:intermediary' and the consumer needed a component, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' | |
- Other compatible attributes: | |
- Doesn't say anything about how its dependencies are found (required its dependencies declared externally) | |
- Doesn't say anything about its target Java version (required compatibility with Java 11) | |
- Variant 'enforced-platform-compile' capability net.minecraft:minecraft-derived-enforced-platform:1.15.2 declares an API of a component: | |
- Incompatible because this component declares an enforced platform, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:intermediary:1.15.2:intermediary' and the consumer needed a library, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' | |
- Other compatible attributes: | |
- Doesn't say anything about how its dependencies are found (required its dependencies declared externally) | |
- Doesn't say anything about its target Java version (required compatibility with Java 11) | |
- Doesn't say anything about its elements (required them preferably in the form of class files) | |
- Variant 'enforced-platform-runtime' capability net.minecraft:minecraft-derived-enforced-platform:1.15.2 declares a runtime of a component: | |
- Incompatible because this component declares an enforced platform, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:intermediary:1.15.2:intermediary' and the consumer needed a library, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' | |
- Other compatible attributes: | |
- Doesn't say anything about how its dependencies are found (required its dependencies declared externally) | |
- Doesn't say anything about its target Java version (required compatibility with Java 11) | |
- Doesn't say anything about its elements (required them preferably in the form of class files) | |
- Variant 'platform-compile' capability net.minecraft:minecraft-derived-platform:1.15.2 declares an API of a component: | |
- Incompatible because this component declares a platform, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:intermediary:1.15.2:intermediary' and the consumer needed a library, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' | |
- Other compatible attributes: | |
- Doesn't say anything about how its dependencies are found (required its dependencies declared externally) | |
- Doesn't say anything about its target Java version (required compatibility with Java 11) | |
- Doesn't say anything about its elements (required them preferably in the form of class files) | |
- Variant 'platform-runtime' capability net.minecraft:minecraft-derived-platform:1.15.2 declares a runtime of a component: | |
- Incompatible because this component declares a platform, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:intermediary:1.15.2:intermediary' and the consumer needed a library, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' | |
- Other compatible attributes: | |
- Doesn't say anything about how its dependencies are found (required its dependencies declared externally) | |
- Doesn't say anything about its target Java version (required compatibility with Java 11) | |
- Doesn't say anything about its elements (required them preferably in the form of class files) | |
- Variant 'runtime' capability net.minecraft:minecraft:1.15.2 declares a runtime of a library, packaged as a jar: | |
- Incompatible because this component declares a component, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:intermediary:1.15.2:intermediary' and the consumer needed a component, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' | |
- Other compatible attributes: | |
- Doesn't say anything about how its dependencies are found (required its dependencies declared externally) | |
- Doesn't say anything about its target Java version (required compatibility with Java 11) | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. | |
* Get more help at https://help.gradle.org | |
BUILD FAILED in 805ms | |
1 actionable task: 1 executed | |
Testing with -PTEST=2 | |
> Configure project : | |
Applied -PTEST= settings 2 | |
moduleMetadataAttrValue: null | |
component metadata rule used: false | |
default attr value overridden: null | |
This build is expected to fail with the error "TODO: Actually transform.". If build succeeds, transforms weren't ran as expected. | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:official -> net.fabricmc:intermediary:1.15.2:intermediary | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:intermediary -> net.fabricmc:intermediary:1.15.2:official | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:intermediary -> net.fabricmc:yarn:1.15.2+build.9:v2:named | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:yarn:1.15.2+build.9:v2:named -> net.fabricmc:intermediary:1.15.2:intermediary | |
> Task :compileJava UP-TO-DATE | |
> Task :processResources NO-SOURCE | |
> Task :classes UP-TO-DATE | |
> Task :jar UP-TO-DATE | |
> Task :javadoc UP-TO-DATE | |
> Task :javadocJar UP-TO-DATE | |
> Task :sourcesJar UP-TO-DATE | |
> Task :assemble UP-TO-DATE | |
> Task :spotlessJava UP-TO-DATE | |
> Task :spotlessJavaCheck UP-TO-DATE | |
> Task :spotlessMisc UP-TO-DATE | |
> Task :spotlessMiscCheck UP-TO-DATE | |
> Task :spotlessCheck UP-TO-DATE | |
> Task :compileTestJava NO-SOURCE | |
> Task :processTestResources NO-SOURCE | |
> Task :testClasses UP-TO-DATE | |
> Task :test NO-SOURCE | |
> Task :check UP-TO-DATE | |
> Task :build UP-TO-DATE | |
BUILD SUCCESSFUL in 936ms | |
9 actionable tasks: 9 up-to-date | |
Testing with -PTEST=3 | |
> Configure project : | |
Applied -PTEST= settings 3 | |
moduleMetadataAttrValue: null | |
component metadata rule used: false | |
default attr value overridden: net.fabricmc:intermediary:1.15.2:intermediary | |
This build is expected to fail with the error "TODO: Actually transform.". If build succeeds, transforms weren't ran as expected. | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:official -> net.fabricmc:intermediary:1.15.2:intermediary | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:intermediary -> net.fabricmc:intermediary:1.15.2:official | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:intermediary -> net.fabricmc:yarn:1.15.2+build.9:v2:named | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:yarn:1.15.2+build.9:v2:named -> net.fabricmc:intermediary:1.15.2:intermediary | |
> Task :compileJava FAILED | |
Called RemapTransform.transform | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Execution failed for task ':compileJava'. | |
> Could not resolve all files for configuration ':compileClasspath'. | |
> Failed to transform minecraft-1.15.2.jar (net.minecraft:minecraft:1.15.2) to match attributes {artifactType=jar, dev.minco.mapped.net.minecraft=net.fabricmc:yarn:1.15.2+build.9:v2:named, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}. | |
> Execution failed for RemapTransform: D:\Home\Code\MinimallyCorrect\Mapping\MappingTest\build\mappingWorkaroundM2\net\minecraft\minecraft\1.15.2\minecraft-1.15.2.jar. | |
> TODO: Actually transform. Expected failure. | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. | |
* Get more help at https://help.gradle.org | |
BUILD FAILED in 774ms | |
1 actionable task: 1 executed | |
Testing with -PTEST=4 | |
> Configure project : | |
Applied -PTEST= settings 4 | |
moduleMetadataAttrValue: net.fabricmc:intermediary:1.15.2:intermediary | |
component metadata rule used: false | |
default attr value overridden: net.fabricmc:intermediary:1.15.2:intermediary | |
This build is expected to fail with the error "TODO: Actually transform.". If build succeeds, transforms weren't ran as expected. | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:official -> net.fabricmc:intermediary:1.15.2:intermediary | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:intermediary -> net.fabricmc:intermediary:1.15.2:official | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:intermediary:1.15.2:intermediary -> net.fabricmc:yarn:1.15.2+build.9:v2:named | |
Registered transform for attr dev.minco.mapped.net.minecraft from: | |
net.fabricmc:yarn:1.15.2+build.9:v2:named -> net.fabricmc:intermediary:1.15.2:intermediary | |
> Task :compileJava FAILED | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Execution failed for task ':compileJava'. | |
> Could not resolve all files for configuration ':compileClasspath'. | |
> Could not resolve net.minecraft:minecraft:1.15.2. | |
Required by: | |
project : | |
> No matching variant of net.minecraft:minecraft:1.15.2 was found. The consumer was configured to find an API of a library compatible with Java 11, preferably in the form of class files, and its dependencies declared externally, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' but: | |
- Variant 'apiElements' capability net.minecraft:minecraft:1.15.2 declares an API of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally: | |
- Incompatible because this component declares a component, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:intermediary:1.15.2:intermediary' and the consumer needed a component, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' | |
- Variant 'runtimeElements' capability net.minecraft:minecraft:1.15.2 declares a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally: | |
- Incompatible because this component declares a component, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:intermediary:1.15.2:intermediary' and the consumer needed a component, as well as attribute 'dev.minco.mapped.net.minecraft' with value 'net.fabricmc:yarn:1.15.2+build.9:v2:named' | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. | |
* Get more help at https://help.gradle.org | |
BUILD FAILED in 819ms | |
1 actionable task: 1 executed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment