Add ViaAxiom
Deploy / Build (push) Skipped
Pull Request Build / Build (pull_request) Failing after 17s
Deploy / Build (push) Skipped
Pull Request Build / Build (pull_request) Failing after 17s
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user