Move to kapt for annotation processing (allows kotlin to be used in the core module)

This commit is contained in:
Max Leibowitz
2021-04-02 17:25:07 -07:00
parent 02e68d27a3
commit 31f8d6c830
3 changed files with 28 additions and 8 deletions

View File

@@ -23,6 +23,11 @@ buildscript{
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.4.32'
id "org.jetbrains.kotlin.kapt" version "1.4.32"
}
allprojects{
apply plugin: 'maven'
@@ -287,6 +292,16 @@ project(":ios"){
project(":core"){
apply plugin: "java-library"
apply plugin: "kotlin"
apply plugin: "kotlin-kapt"
kapt {
javacOptions {
option("-source", "14")
option("-target", "1.8")
option("--enable-preview")
}
}
compileJava.options.fork = true
@@ -354,10 +369,9 @@ project(":core"){
api "com.github.Anuken:rhino:$rhinoVersion"
if(localArc() && debugged()) api arcModule("extensions:recorder")
compileOnly project(":annotations")
annotationProcessor project(":annotations")
annotationProcessor 'com.github.Anuken:jabel:34e4c172e65b3928cd9eabe1993654ea79c409cd'
compileOnly project(":annotations")
kapt project(":annotations")
}
afterEvaluate{