2023-10-07 16:48:22 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
2024-01-30 11:58:03 +00:00
|
|
|
`version-catalog`
|
|
|
|
`java-library`
|
2024-01-08 00:22:10 +00:00
|
|
|
kotlin("jvm")
|
2024-01-30 11:58:03 +00:00
|
|
|
alias(libs.plugins.kotlin.lombok)
|
|
|
|
alias(libs.plugins.lombok)
|
2023-10-07 16:48:22 +00:00
|
|
|
}
|
|
|
|
|
2024-01-08 00:22:10 +00:00
|
|
|
group = "org.anime_game_servers.lua"
|
2024-01-30 11:58:03 +00:00
|
|
|
version = libs.versions.anime.game.lua.get()
|
2023-10-07 16:48:22 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2024-01-08 00:22:10 +00:00
|
|
|
mavenLocal()
|
2023-10-07 16:48:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-01-30 11:58:03 +00:00
|
|
|
testImplementation(platform("org.junit:junit-bom:${libs.versions.junit}"))
|
|
|
|
testImplementation(libs.junit)
|
|
|
|
implementation(libs.jvm.kotlin.stdlib)
|
|
|
|
api(libs.bundles.jvm.ags.lua.gi)
|
|
|
|
implementation(libs.findbugs.jsr305)
|
|
|
|
implementation(libs.jvm.logging)
|
|
|
|
compileOnly(libs.jvm.lombok)
|
|
|
|
annotationProcessor(libs.jvm.lombok)
|
|
|
|
implementation(libs.jvm.rtree.multi)
|
2024-04-04 23:35:52 +00:00
|
|
|
testImplementation(project(":base"))
|
|
|
|
testImplementation(project(":LuaJEngine"))
|
|
|
|
testImplementation(project(":JNLuaEngine"))
|
2023-10-07 16:48:22 +00:00
|
|
|
}
|
2024-01-08 19:32:25 +00:00
|
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
|
|
compilerOptions {
|
|
|
|
freeCompilerArgs.add("-Xjvm-default=all")
|
|
|
|
}
|
|
|
|
}
|
2023-10-07 16:48:22 +00:00
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
val compileKotlin: KotlinCompile by tasks
|
|
|
|
compileKotlin.kotlinOptions {
|
|
|
|
jvmTarget = "17"
|
|
|
|
}
|
|
|
|
val compileTestKotlin: KotlinCompile by tasks
|
|
|
|
compileTestKotlin.kotlinOptions {
|
|
|
|
jvmTarget = "17"
|
|
|
|
}
|
|
|
|
|
2023-11-06 01:46:26 +00:00
|
|
|
java {
|
|
|
|
withSourcesJar()
|
2024-02-02 13:05:05 +00:00
|
|
|
//withJavadocJar()
|
2023-11-06 01:46:26 +00:00
|
|
|
}
|
|
|
|
|
2023-10-07 16:48:22 +00:00
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
create<MavenPublication>("maven") {
|
2024-02-02 12:54:29 +00:00
|
|
|
from(components["java"])
|
2024-01-21 18:37:19 +00:00
|
|
|
groupId = "org.anime_game_servers.lua"
|
2023-10-07 16:48:22 +00:00
|
|
|
artifactId = "GIlua"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|