aboutsummaryrefslogtreecommitdiff
path: root/javaplugin/build.gradle.kts
blob: 6982a5a80a5cafad5f990514f0630ca3008bb708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
plugins {
	java
	idea
}
dependencies {
	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(
		compilerModules.map { "--add-exports=$it=$module" }
	)
}