blob: 970763929fd0997e1545435b2ba0cd8bde260105 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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",
))
}
|