aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java
diff options
context:
space:
mode:
authorshartte <shartte@users.noreply.github.com>2021-09-14 23:40:47 +0200
committerGitHub <noreply@github.com>2021-09-14 22:40:47 +0100
commitd48c74161e1a17fd5c8464605f9eb1e45d6e359a (patch)
tree7042da87cdafd52ead9b2ac3a6e703f4e8c9e26b /src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java
parent08e548b6c62815bf4b75593cb9a499951a4f564e (diff)
downloadarchitectury-loom-d48c74161e1a17fd5c8464605f9eb1e45d6e359a.tar.gz
architectury-loom-d48c74161e1a17fd5c8464605f9eb1e45d6e359a.tar.bz2
architectury-loom-d48c74161e1a17fd5c8464605f9eb1e45d6e359a.zip
Access Widener 2.0 with support for Transitive Access Wideners (#484)
* 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>
Diffstat (limited to 'src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java')
-rw-r--r--src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java7
1 files changed, 7 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 1a84efc9..4020ecdc 100644
--- a/src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java
+++ b/src/main/java/net/fabricmc/loom/api/LoomGradleExtensionAPI.java
@@ -204,4 +204,11 @@ public interface LoomGradleExtensionAPI {
* @return the version defined in the fabric.mod.json
*/
String getModVersion();
+
+ /**
+ * When true loom will apply transitive access wideners from compile dependencies.
+ *
+ * @return the property controlling the transitive access wideners
+ */
+ Property<Boolean> getEnableTransitiveAccessWideners();
}