Update Jabel to the 0.4.0 version
This commit is contained in:
parent
843f12702f
commit
28b78d2d73
|
@ -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"))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue