aboutsummaryrefslogtreecommitdiff
path: root/javaplugin/build.gradle.kts
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-09 13:48:52 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-09 13:48:52 +0100
commit706a03807b12ddd5e7c46a72fc27aa30e1f9b60f (patch)
tree48f34b1f5ac0cd1f8c281fb9b49c845ced7eddf0 /javaplugin/build.gradle.kts
parent4ae0fd617489a4a18edfbdd6343d88add8b234a7 (diff)
downloadFirmament-706a03807b12ddd5e7c46a72fc27aa30e1f9b60f.tar.gz
Firmament-706a03807b12ddd5e7c46a72fc27aa30e1f9b60f.tar.bz2
Firmament-706a03807b12ddd5e7c46a72fc27aa30e1f9b60f.zip
WIP: re-add gender mod
Diffstat (limited to 'javaplugin/build.gradle.kts')
-rw-r--r--javaplugin/build.gradle.kts20
1 files changed, 10 insertions, 10 deletions
diff --git a/javaplugin/build.gradle.kts b/javaplugin/build.gradle.kts
index 9707639..6982a5a 100644
--- a/javaplugin/build.gradle.kts
+++ b/javaplugin/build.gradle.kts
@@ -1,16 +1,16 @@
plugins {
- java
+ java
+ idea
}
dependencies {
- implementation("net.fabricmc:stitch:0.6.2")
+ implementation("net.fabricmc:stitch:0.6.2")
}
+val compilerModules = listOf("util", "comp", "tree", "api", "code")
+ .map { "jdk.compiler/com.sun.tools.javac.$it" }
+
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",
- ))
+ val module = "ALL-UNNAMED"
+ options.compilerArgs.addAll(
+ compilerModules.map { "--add-exports=$it=$module" }
+ )
}