aboutsummaryrefslogtreecommitdiff
path: root/javaplugin/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'javaplugin/build.gradle.kts')
-rw-r--r--javaplugin/build.gradle.kts16
1 files changed, 16 insertions, 0 deletions
diff --git a/javaplugin/build.gradle.kts b/javaplugin/build.gradle.kts
new file mode 100644
index 0000000..9707639
--- /dev/null
+++ b/javaplugin/build.gradle.kts
@@ -0,0 +1,16 @@
+plugins {
+ java
+}
+dependencies {
+ implementation("net.fabricmc:stitch:0.6.2")
+}
+tasks.withType(JavaCompile::class) {
+ val module = "ALL-UNNAMED"
+ options.compilerArgs.addAll(listOf(
+ "--add-exports=jdk.compiler/com.sun.tools.javac.util=$module",
+ "--add-exports=jdk.compiler/com.sun.tools.javac.comp=$module",
+ "--add-exports=jdk.compiler/com.sun.tools.javac.tree=$module",
+ "--add-exports=jdk.compiler/com.sun.tools.javac.api=$module",
+ "--add-exports=jdk.compiler/com.sun.tools.javac.code=$module",
+ ))
+}