Update java/kotlin (#611)

This commit is contained in:
KirillPamPam
2024-12-25 15:36:56 +04:00
committed by GitHub
parent 42da48be5f
commit 7832c1be0e
8 changed files with 15 additions and 14 deletions

View File

@@ -36,8 +36,8 @@ group = 'io.emeraldpay.dshackle'
version = getVersion()
java {
sourceCompatibility = JavaVersion.VERSION_20
targetCompatibility = JavaVersion.VERSION_20
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
repositories {
@@ -119,6 +119,7 @@ dependencies {
implementation(variantOf(libs.netty.tcnative.boringssl) { classifier("osx-aarch_64") })
implementation(variantOf(libs.netty.tcnative.boringssl) { classifier("linux-x86_64") })
implementation(variantOf(libs.netty.tcnative.boringssl) { classifier("linux-aarch_64") })
implementation(variantOf(libs.netty.tcnative.boringssl) { classifier("osx-x86_64") })
implementation 'dshackle:foundation:1.0.0'
@@ -132,10 +133,10 @@ tasks.withType(Test) { jvmArgs += "--enable-preview" }
tasks.withType(JavaExec) { jvmArgs += "--enable-preview" }
compileKotlin {
compilerOptions.jvmTarget.set(JvmTarget.JVM_20)
compilerOptions.jvmTarget.set(JvmTarget.JVM_21)
}
compileTestKotlin {
compilerOptions.jvmTarget.set(JvmTarget.JVM_20)
compilerOptions.jvmTarget.set(JvmTarget.JVM_21)
}
test {