AnimeGamesLua/GILua/build.gradle.kts

65 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2023-10-07 16:48:22 +00:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`version-catalog`
`java-library`
kotlin("jvm")
alias(libs.plugins.kotlin.lombok)
alias(libs.plugins.lombok)
2023-10-07 16:48:22 +00:00
}
group = "org.anime_game_servers.lua"
version = libs.versions.anime.game.lua.get()
2023-10-07 16:48:22 +00:00
repositories {
mavenCentral()
mavenLocal()
2023-10-07 16:48:22 +00:00
}
dependencies {
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)
testImplementation(project(":base"))
testImplementation(project(":LuaJEngine"))
testImplementation(project(":JNLuaEngine"))
2023-10-07 16:48:22 +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"
}
java {
withSourcesJar()
//withJavadocJar()
}
2023-10-07 16:48:22 +00:00
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
groupId = "org.anime_game_servers.lua"
2023-10-07 16:48:22 +00:00
artifactId = "GIlua"
}
}
}