diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2021-09-05 18:08:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-05 16:08:16 +0100 |
commit | 08f055489b96878a9d645288d2057aa93867fd76 (patch) | |
tree | e1a443e245f25138ed2ba263e8f34adc0f4b3752 /src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java | |
parent | b1b395cedf105146cd0441d1425bd8bbf2b85ed9 (diff) | |
download | architectury-loom-08f055489b96878a9d645288d2057aa93867fd76.tar.gz architectury-loom-08f055489b96878a9d645288d2057aa93867fd76.tar.bz2 architectury-loom-08f055489b96878a9d645288d2057aa93867fd76.zip |
Fix the java software component not working with Loom and fix #200 (#460)
* 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
Diffstat (limited to 'src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java')
-rw-r--r-- | src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java b/src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java index bd48bd6e..4fb8bae0 100644 --- a/src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java +++ b/src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java @@ -174,4 +174,14 @@ public interface LoomGradleExtensionAPI { getDeprecationHelper().replaceWithInLoom0_11("customManifest", "customMinecraftManifest"); return getCustomMinecraftManifest().getOrNull(); } + + /** + * If true, Loom will replace the {@code -dev} jars in the {@code *Elements} configurations + * with remapped outgoing variants. + * + * <p>Will only apply if {@link #getRemapArchives()} is also true. + * + * @return the property controlling the setup of remapped variants + */ + Property<Boolean> getSetupRemappedVariants(); } |