Skip to content

Commit

Permalink
Convert Java to Kotlin for fun #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Cong0707 committed Jun 9, 2024
1 parent 0fe5b94 commit 3ff7409
Show file tree
Hide file tree
Showing 81 changed files with 15,573 additions and 13,797 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ buildscript{
}

plugins{
id "org.jetbrains.kotlin.jvm" version "1.9.20"
id "org.jetbrains.kotlin.kapt" version "1.9.20"
id "org.jetbrains.kotlin.jvm" version "2.0.0"
id "org.jetbrains.kotlin.kapt" version "2.0.0"
}

allprojects{
Expand Down Expand Up @@ -141,6 +141,7 @@ project(":core"){
apply plugin: "kotlin-kapt"

kapt{
useBuildCache = true
javacOptions{
option("-source", "16")
option("-target", "1.8")
Expand Down
2 changes: 2 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
kotlin("jvm")
id("mindustryX.buildExt")
}

sourceSets.main {
java.setSrcDirs(listOf("src/", layout.buildDirectory.dir("/generated/sources/annotationProcessor/java/main")))
kotlin.setSrcDirs(listOf("src/"))
Expand All @@ -15,6 +16,7 @@ tasks{
withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}

Expand Down
Loading

0 comments on commit 3ff7409

Please sign in to comment.