forked from SteamWar/SteamWar
Add Kotlin plugin and configure build scripts for Kotlin compatibility, integrate exposed library dependencies, and enhance JVM settings.
Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
@@ -19,13 +19,18 @@
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
steamwar.java
|
steamwar.java
|
||||||
kotlin("jvm")
|
steamwar.kotlin
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain(8)
|
jvmToolchain(8)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
java {
|
java {
|
||||||
@@ -62,6 +67,7 @@ dependencies {
|
|||||||
|
|
||||||
implementation("org.yaml:snakeyaml:2.2")
|
implementation("org.yaml:snakeyaml:2.2")
|
||||||
|
|
||||||
|
compileOnlyApi("org.jetbrains.kotlin:kotlin-stdlib:2.2.21")
|
||||||
api(libs.exposedCore)
|
api(libs.exposedCore)
|
||||||
api(libs.exposedDao)
|
api(libs.exposedDao)
|
||||||
api(libs.exposedJdbc)
|
api(libs.exposedJdbc)
|
||||||
|
|||||||
@@ -27,11 +27,16 @@ tasks.build {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.shadowJar {
|
tasks.shadowJar {
|
||||||
exclude("org/**")
|
exclude("org/intellij/**", "org/slf4j/**")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(libs.paperapi21)
|
compileOnly(libs.paperapi21)
|
||||||
compileOnly(libs.nms21)
|
compileOnly(libs.nms21)
|
||||||
compileOnly(project(":SpigotCore"))
|
compileOnly(project(":SpigotCore"))
|
||||||
|
|
||||||
|
implementation(libs.exposedCore)
|
||||||
|
implementation(libs.exposedDao)
|
||||||
|
implementation(libs.exposedJdbc)
|
||||||
|
implementation(libs.exposedTime)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
steamwar.java
|
steamwar.java
|
||||||
|
steamwar.kotlin
|
||||||
alias(libs.plugins.shadow)
|
alias(libs.plugins.shadow)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55,4 +56,9 @@ dependencies {
|
|||||||
implementation(libs.apolloprotos)
|
implementation(libs.apolloprotos)
|
||||||
|
|
||||||
implementation(libs.nbt)
|
implementation(libs.nbt)
|
||||||
|
|
||||||
|
implementation(libs.exposedCore)
|
||||||
|
implementation(libs.exposedDao)
|
||||||
|
implementation(libs.exposedJdbc)
|
||||||
|
implementation(libs.exposedTime)
|
||||||
}
|
}
|
||||||
@@ -34,5 +34,5 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.10")
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.21")
|
||||||
}
|
}
|
||||||
@@ -20,3 +20,4 @@
|
|||||||
org.gradle.daemon = true
|
org.gradle.daemon = true
|
||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
org.gradle.workers.max = 16
|
org.gradle.workers.max = 16
|
||||||
|
org.gradle.jvmargs=-Xmx4096m
|
||||||
Reference in New Issue
Block a user