diff --git a/build.gradle.kts b/build.gradle.kts index 15f289c..71304f4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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")) } }