aboutsummaryrefslogtreecommitdiff
path: root/javaplugin/build.gradle.kts
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-08-10 01:59:34 +0200
committerLinnea Gräf <nea@nea.moe>2024-08-12 21:02:44 +0200
commit3c7e6b6177de6ef3cff8a46bb1726466a299cdde (patch)
tree2ebc75e705b5422a68d5d7f04d88e3d8934cf02d /javaplugin/build.gradle.kts
parent1606188d9ad65c66e9d873497ea3271dbdadaf77 (diff)
downloadfirmament-3c7e6b6177de6ef3cff8a46bb1726466a299cdde.tar.gz
firmament-3c7e6b6177de6ef3cff8a46bb1726466a299cdde.tar.bz2
firmament-3c7e6b6177de6ef3cff8a46bb1726466a299cdde.zip
Add indigo support to custom block textures
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",
+ ))
+}