Update Jabel to the 0.4.0 version

This commit is contained in:
Username404 2021-06-06 21:57:39 +02:00
parent 843f12702f
commit 28b78d2d73
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 11 deletions

View File

@ -177,12 +177,7 @@ allprojects {
dependencies {
implementation(kotlin("stdlib-jdk8", kotlinVer))
implementation(kotlin("reflect", kotlinVer))
annotationProcessor("com.github.bsideup.jabel:jabel-javac-plugin:0.3.0") {
listOf("byte-buddy", "byte-buddy-agent").forEach {
exclude(module = it)
annotationProcessor("net.bytebuddy:$it:1.10.22")
} // Required for Java 16 support
}
annotationProcessor("com.github.bsideup.jabel:jabel-javac-plugin:0.4.0")
}
tasks {
withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
@ -199,13 +194,8 @@ allprojects {
isFork = true
release.set(javaVer.toInt())
javaCompiler.set(compiler)
// The following lines are required for Jabel:
sourceCompatibility = sourceJavaVer
targetCompatibility = javaVer
forkOptions.jvmArgs!!.addAll(listOf(
"--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED"
)) // Java 16+ support
compilerArgs.addAll(listOf("-Xplugin:jabel"))
}
}