]> nmode's Git Repositories - signal-cli/blobdiff - lib/build.gradle.kts
Switch to Java 21
[signal-cli] / lib / build.gradle.kts
index 8c766a8198d42e3098d3294e3a8748c9cb29cfd9..38d4c221170b2586e34fa69a46b352bf9e5266d0 100644 (file)
@@ -4,8 +4,12 @@ plugins {
 }
 
 java {
-    sourceCompatibility = JavaVersion.VERSION_17
-    targetCompatibility = JavaVersion.VERSION_17
+    sourceCompatibility = JavaVersion.VERSION_21
+    targetCompatibility = JavaVersion.VERSION_21
+
+    toolchain {
+        languageVersion.set(JavaLanguageVersion.of(21))
+    }
 }
 
 val libsignalClientPath = project.findProperty("libsignal_client_path")?.toString()
@@ -20,7 +24,6 @@ dependencies {
         implementation(files(libsignalClientPath))
     }
     implementation(libs.jackson.databind)
-    implementation(libs.protobuf)
     implementation(libs.bouncycastle)
     implementation(libs.slf4j.api)
     implementation(libs.sqlite)