aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-09-14Access Widener 2.0 with support for Transitive Access Wideners (#484)shartte
* Added global access widener support. * Adapt loom to changed API of latest AW PR. * Fix expected access widener to fix the test. Since the access widener is now streamed directly into the writer, the expanded rules (i.e. accessible field makes the owning class also accessible) are no longer found in the remapped file. * Add basic transitive accesswidener test * Extracted applying transitive access wideners into their own jar processor since they also need to be applied if there is no AW in the mod itself. * Misc assortment of fixes * Set up the processor lazily to allow for adding the intermediary MC jar, which is needed to correctly remap intermediary AWs to named. * Rework to setup the tiny remapper classpath with the mc jar Add an extension prop to disable * Add TransitiveDetectorVisitor * Minor refactoring. * Use release-version of access-widener. Co-authored-by: modmuss50 <modmuss50@gmail.com>
2021-09-13Expose layered mappings as an API (#490)modmuss50
* Expose layered mappings as an API * Add FileSpec * Cleanup and support DependencyFileSpec
2021-09-12Fix aw2at tests, add Yarn 1.16 test (#45)Juuxel
* Fix aw2at tests * Clean up the code anyway because it was messy * Normalise everything to LF * ...really, another typo? * Import ordering * Add Yarn aw2at test * wow bad os
2021-09-12Remove unused Constants.SOFTWARE_COMPONENT_NAME (#493)Juuxel
This was a leftover from removed code, oops
2021-09-12Fix FabricAPITestshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-09-12Make test matrix recursiveshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-09-12Fix codenarc stylingshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-09-12Merge two testsshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-09-12Fix some testsshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-09-12Merge remote-tracking branch 'FabricMC/dev/0.10' into dev/0.10.0shedaniel
2021-09-11Fix ParchmentMappingLayerTest test (#491)shedaniel
* Fix ParchmentMappingLayerTest test * Update mapping-io * Remove comment
2021-09-11Fix codenarcshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-09-11Fix checkstyleshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-09-11Fix merge conflictsshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-09-11Merge remote-tracking branch 'FabricMC/dev/0.10' into dev/futureshedaniel
# Conflicts: # build.gradle # src/main/java/net/fabricmc/loom/LoomGradleExtension.java # src/main/java/net/fabricmc/loom/LoomRepositoryPlugin.java # src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java # src/main/java/net/fabricmc/loom/build/MixinRefmapHelper.java # src/main/java/net/fabricmc/loom/configuration/CompileConfiguration.java # src/main/java/net/fabricmc/loom/configuration/MavenPublication.java # src/main/java/net/fabricmc/loom/extension/LoomGradleExtensionApiImpl.java # src/main/java/net/fabricmc/loom/extension/MinecraftGradleExtension.java # src/main/java/net/fabricmc/loom/extension/MixinExtensionImpl.java # src/main/java/net/fabricmc/loom/task/RemapJarTask.java # src/main/java/net/fabricmc/loom/util/Constants.java # src/main/java/net/fabricmc/loom/util/SourceRemapper.java # src/test/groovy/net/fabricmc/loom/test/util/ProjectTestTrait.groovy
2021-09-11Compile to J11shedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-09-11Convert AWs on Forge to ATs in RemapJarTask (#24)Juuxel
* Aw2At * Hook Aw2At up to remapJar * Checkstyle * Checkstyle, part II * Now it's Spotless' turn * Remap the resulting AT * you see, this is why mojmap is bad * Inject(method = "<init>") * Use file systems because ZipUtil is bad * Make it false by default * Add integ tests for aw2at * spotless please * fix year
2021-09-10Add loom.modVersion to read the version from the fabric.mod.json file. (#489)modmuss50
2021-09-08Fix reproducible build test, a none legacy test for this should be added at ↵modmuss50
a later date.
2021-09-07Update dependenciesmodmuss50
2021-09-07Disable ANSI when gradle's --console plain arg is used Fixes #486modmuss50
2021-09-07Update checkstyle to prevent using var expect for new instance creation.modmuss50
2021-09-07Fix line endings in fapi patchmodmuss50
2021-09-07Use tiny-remapper to remap mixin annotation. (#441)Logic
* use tiny-remapper 0.5.0 * add property of useLegacyMixinAp and rename mixin to mixinAp * disable mixin ap if useLegacyMixinAp is false * fix tests * remove experimental for mixinAp * enable mixin remapper * revert changes on API * rename MixinAp*** to Mixin*** * move useLegacyMixinAp inside MixinExtension * cleaner code * update test Co-authored-by: modmuss50 <modmuss50@gmail.com>
2021-09-07Fix fabric api build testmodmuss50
2021-09-05Add option to disable deprecated POM generation and the warnings together ↵Juuxel
with it (#487)
2021-09-05Revert fabric api patch to fix deprecations, I believe loom is wrong.modmuss50
2021-09-05Fix crash when "sourcesElements" is not presentmodmuss50
2021-09-05Patch fabric api to fix loom deprecationsmodmuss50
2021-09-05Update MCE and test depsmodmuss50
2021-09-05Make parchment layer test also test the parameter after being reordered (#483)shedaniel
* Make parchment mappings layer test also test the parameter after being reordered. * Switch to using hashCode
2021-09-05Fix the java software component not working with Loom and fix #200 (#460)Juuxel
* Add modCompileOnlyApi, modRuntimeOnly; deprecate modRuntime * begin * continue * Make RemapSourcesJarTask use properties * finish * Remove cursed version hack :wink: * Finish for real * Add missing header * Clarify a comment * Fix tests * Use Gradle's own *Elements and remove -dev jars * Fix maven test * Put mappingsFinal onto runtimeClasspath instead of implementation * Make non-mod dependencies work with the legacy pom magic too * Be a bit more clever when removing dev artifacts
2021-09-02Revert "Make SourceRemapper threaded (#446)"modmuss50
This reverts commit ef2816b0d0f8a89a05445ab22abe82c28f8ffd06.
2021-08-31Make --refresh-dependencies work by creating the directory after clearing it ↵shedaniel
(#482)
2021-08-31Refactor and improve tests (#466)modmuss50
* Install and run a production server in tests * Small improvements * Add FabricAPI build test Create new GradleProjectTestTrait replacing the old trait Improve groovy code formatting. * Refactor tests * Fix MultiProjectTest + fix logging for fabric api test * Cleanup and fixes * Update fabric api + run in parallel for speed * Set server memory + fix error
2021-08-31Make it workshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-08-30Start work on porting 0.7.4 overshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-08-26Make LayeredMappingsDependency not error because of uninitialized ↵shedaniel
MappingsProvider Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-08-26Fix compile for b320c4199a3aae41a83d5c336d45ecaac0499c36 (#480)shedaniel
* Fix compile for b320c4199a3aae41a83d5c336d45ecaac0499c36 * Fix checkstyle
2021-08-26Merge remote-tracking branch 'shedaniel/patch-2' into dev/futureshedaniel
2021-08-26Fix compile for b320c4199a3aae41a83d5c336d45ecaac0499c36shedaniel
2021-08-26Merge remote-tracking branch 'FabricMC/exp/0.10' into dev/futureshedaniel
# Conflicts: # src/main/java/net/fabricmc/loom/LoomRepositoryPlugin.java # src/main/java/net/fabricmc/loom/configuration/providers/minecraft/assets/MinecraftAssetsProvider.java
2021-08-22Allow developer set the site where to download game resource.(0.9 branch) (#442)hanbings
* Add mirrors util and mirror configuration * Fix NPE in MirrorConfiguration; Add constants in Constants; Rename Mirrors.java to MirrorUtil.java * Bump gradle nightly version * Apply mirror to download assets. Need fix settings in LoomRepositoryPlugin.java * Fix MojangMappingsSpec having the same hash version for each mc version. I dont think this would be a real cause for concern as the jar would have had the mc version in it anyway. * Revert "Fix MojangMappingsSpec having the same hash version for each mc version." This reverts commit 61fa4d9f * Remove MirrorConfiguration and move to MirrorUtil * StyleCheck. * Fix "IllegalStateException: The root project is not yet available for build." * Remove some of the extra content. Co-authored-by: BreakIce <suibing112233@outlook.com> Co-authored-by: modmuss50 <modmuss50@gmail.com>
2021-08-22update mapping-io, fix #473 (#474)Logic
2021-08-14Fix conflictsshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-08-14Merge remote-tracking branch 'FabricMC/exp/0.10' into dev/futureshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me> # Conflicts: # src/main/java/net/fabricmc/loom/configuration/LoomDependencyManager.java # src/main/java/net/fabricmc/loom/configuration/providers/mappings/GradleMappingContext.java # src/main/java/net/fabricmc/loom/configuration/providers/mappings/LayeredMappingsDependency.java # src/main/java/net/fabricmc/loom/configuration/providers/mappings/MappingsProviderImpl.java # src/main/java/net/fabricmc/loom/configuration/providers/minecraft/MinecraftMappedProvider.java # src/main/java/net/fabricmc/loom/extension/LoomGradleExtensionApiImpl.java
2021-08-14Merge remote-tracking branch 'FabricMC/exp/0.10' into dev/futureshedaniel
# Conflicts: # bootstrap/test-project/build.gradle # build.gradle # src/main/java/net/fabricmc/loom/configuration/RemapConfiguration.java # src/main/java/net/fabricmc/loom/configuration/ide/RunConfig.java # src/main/java/net/fabricmc/loom/task/RemapSourcesJarTask.java
2021-08-13File Structure Changes (#462)shedaniel
* File Structure changes * Fix checkstyle * Fix processed jars * Fix unpick tests * Resolve reviews * Fix merge conflicts
2021-08-14Fix checkstyleshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>
2021-08-14Bump to 0.9.1 and fix conflictsshedaniel
Signed-off-by: shedaniel <daniel@shedaniel.me>