Deploy / Build (push) Skipped
Pull Request Build / Build (pull_request) Failing after 17s
38 lines
790 B
Kotlin
38 lines
790 B
Kotlin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
}
|
|
|
|
base {
|
|
archivesName.set("viaaxiom-core")
|
|
}
|
|
|
|
// Velocity can run on Java 21, so the shared core cannot target the Fabric mod's Java 25.
|
|
val targetJavaVersion = 21
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
api("com.github.luben:zstd-jni:1.5.5-4")
|
|
testImplementation(kotlin("test"))
|
|
}
|
|
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
compilerOptions {
|
|
jvmTarget.set(JvmTarget.fromTarget(targetJavaVersion.toString()))
|
|
freeCompilerArgs.add("-Xjdk-release=$targetJavaVersion")
|
|
}
|
|
}
|
|
|
|
tasks.withType<JavaCompile>().configureEach {
|
|
options.release.set(targetJavaVersion)
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|