Move to kapt for annotation processing (allows kotlin to be used in the core module)
This commit is contained in:
20
build.gradle
20
build.gradle
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user