aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/fabricmc
AgeCommit message (Collapse)Author
2021-09-28Add -Dloom.refresh=true option (#508)shedaniel
* Add -Dloom.refresh=true option * Use Boolean.getBoolean
2021-09-28Fix record signatures based on data provided by mappings. (#507)modmuss50
Reads "extras/record_signatures.json" from mappings jar, just works with yarn. Mojmap: ``` mappings loom.layered { officialMojangMappings() signatureFix("net.fabricmc:yarn:21w38a+build.9:v2") } ```
2021-09-22Support a wider range of parameters in FileSpec (#502)Juuxel
* Support a wider range of parameters in FileSpec Now supports - all Providers (incl. Property) - groovy template string literal (GString) - Path and gradle FileSystemLocation * Use the createFromFile overloads directly * Use charsequence instead of (g)string * Update src/main/java/net/fabricmc/loom/api/mappings/layered/spec/FileSpec.java
2021-09-22Use better gradle conventions, and fix #311 (#503)shedaniel
* Use better gradle conventions, and fix #311 * Fix checkstyle * Revert some changes * Use convention * Remove set classpath
2021-09-20Enable legacy mixin ap by default (#501)modmuss50
2021-09-20Dont add loom to compileOnly config.modmuss50
I dont think this has been required since MCE is a thing.
2021-09-19Rebuild record components from field names, improves decompile (#497)modmuss50
2021-09-18Fixes merging of mappings for cases like: class_1234 is mapped, but ↵shartte
class_1234$1 is not. (#498)
2021-09-16Update tiny remapper, register the new LV pattern as invalid with TR.modmuss50
2021-09-16Fix line number remapping not copying all class files. Fixes a runtime crash.modmuss50
2021-09-16Migrate fully to mapping-io + Add comments about transitive access widners ↵modmuss50
to generated sources (#495) * Add comments about transitive access widners to generated sources * Migrate fully to mapping io * Use release version of lorenz-tiny * Review comment
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-12Remove unused Constants.SOFTWARE_COMPONENT_NAME (#493)Juuxel
This was a leftover from removed code, oops
2021-09-10Add loom.modVersion to read the version from the fabric.mod.json file. (#489)modmuss50
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-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-05Add option to disable deprecated POM generation and the warnings together ↵Juuxel
with it (#487)
2021-09-05Fix crash when "sourcesElements" is not presentmodmuss50
2021-09-05Update MCE and test depsmodmuss50
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-26Fix compile for b320c4199a3aae41a83d5c336d45ecaac0499c36 (#480)shedaniel
* Fix compile for b320c4199a3aae41a83d5c336d45ecaac0499c36 * Fix checkstyle
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-13File Structure Changes (#462)shedaniel
* File Structure changes * Fix checkstyle * Fix processed jars * Fix unpick tests * Resolve reviews * Fix merge conflicts
2021-07-31Add modCompileOnlyApi, modRuntimeOnly; deprecate modRuntime (#458)Juuxel
2021-07-31Make RemapSourcesJarTask use properties (#459)Juuxel
2021-07-31Remove the Cache class in the LoomRepositoryPlugin, use LoomFiles instead. ↵Logic
(#464) * refactor LoomFiles to support Settings * remove Cache class, use LoomFiles class * fix checkstyle
2021-07-31Remove the ShowCodeDetailsInExceptionMessages jvm arg, I didn't realise it ↵modmuss50
was default to enabled now.
2021-07-28Revert: "Always fork the java compiler" Fixes #453modmuss50
This reverts 0cfa88f73b7b6da200dc5bac3dde3884a854e17f as it causes OOM issues when building fabric api.
2021-07-28fix #448 (#451)Logic
* fix #448 * minor fix
2021-07-27Fix NPE when in a mod loader dev envmodmuss50
2021-07-26Expose 'loom' extension as the API, deprecate 'minecraft' extension (#449)Juuxel
2021-07-26Use Property in LoomGradleExtension & Move task groups to constants (#445)shedaniel
* Use Property in LoomGradleExtension Signed-off-by: shedaniel <daniel@shedaniel.me> * Fix customMinecraftManifest Signed-off-by: shedaniel <daniel@shedaniel.me> * Add deprecation messages, let's wait for the tests to run to fix the tests that are using deprecated apis Signed-off-by: shedaniel <daniel@shedaniel.me> * Apply license Signed-off-by: shedaniel <daniel@shedaniel.me> * Update src/main/java/net/fabricmc/loom/util/DeprecationHelper.java Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> * Fix some tests, move mixinRefmapName -> mixin.defaultRefmapName Signed-off-by: shedaniel <daniel@shedaniel.me> * Move back to the api Signed-off-by: shedaniel <daniel@shedaniel.me> * Fix some tests Signed-off-by: shedaniel <daniel@shedaniel.me> * Apply reviews Signed-off-by: shedaniel <daniel@shedaniel.me> * Update src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> Co-authored-by: modmuss50 <modmuss50@gmail.com>
2021-07-26Fix loom.accessWidener being a read-only property in Kotlin (#447)Juuxel
* Re-enable Kotlin test because the related bug has been fixed * Fix loom.accessWidener being a read-only property in Kotlin * Remove Kotlin test exclusions
2021-07-25Make SourceRemapper threaded (#446)modmuss50
Should be a little bit faster, but nothing magicial.
2021-07-23Use jar processor ids to fix #432 (#444)Juuxel
* Use jar processor ids to fix #432 * Use full hash string of jar processor ids
2021-07-23Ensure files are closed and outputs cleaned up when remapping.modmuss50
2021-07-21Revert "Fix MojangMappingsSpec having the same hash version for each mc ↵modmuss50
version." This reverts commit 61fa4d9f
2021-07-21Fix MojangMappingsSpec having the same hash version for each mc version.modmuss50
I dont think this would be a real cause for concern as the jar would have had the mc version in it anyway.
2021-07-18Better Mixin AP configuration (#423)LogicFan
* [SPON-15] Apply Mixin AP config for all projects. * Revert "[SPON-15] Apply Mixin AP config for all projects." This reverts commit 93576e83b1221949d551b6307938f7dd6dc8fbbe. * use setter & getter * fix broken test introduced in 54d6ef7896f22f89d6594703d09e3195c814cf10 * initial commit for mixin extension * refactor getConfiguration * apply mixin extension * [SPON-15] allow across project AP config * [SPON-15] revert some changes * [SPON-15] refactor codes * [SPON-15] fix bugs * [SPON-15] bring back cross-project apconfig * [SPON-15] bug fix: move add default sourceSet earlier * [SPON-15] fix style * [SPON-15] refactor MixinAPExtension * add test * update test * [SPON-15] fix test * Update MixinAnnotationProcessorExtension.java * [SPON-15] fix test * fix deprecated gradle API * [SPON-15] refactor ApInvoker * [SPON-15] refactor ApInvoker * allow change refmap name in sourceSet bases * add new condition on test * [SPON-15] fix wrong suffix * Revert "[SPON-15] fix wrong suffix" This reverts commit 98910392d91c26cd0454cca8cfc03c4e3d417fd6. * fix mixinjson suffix * use stream instead of collection for mixin json name * change name for function * use correct auto-refmap * fix file name * add with action * add test * refactor some codes * refactor code * update test * fix checkstyle * better error message * fix checkstyle * remove corss project option * allow mixin inside loom * remove project0 I should remove all project0. If I forget one please tell me. * move `mixin` inside `loom` * fix spotless * merge attempt * fix checkstyle * seperate api & impl * add experimental annotation for API * use API * Fix indentation Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> * fix typo Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> * fix typo Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> * better javadoc Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2021-07-16Fix fabricApi.module does not respecting offline mode. Closes #412modmuss50
2021-07-16Fallback to fabric's experimental version manifest for versions that are not ↵modmuss50
in the launchermeta.
2021-07-16Actually handle gzip encoded connections when downloading.modmuss50
2021-07-16Add back customManifest apimodmuss50