1+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13plugins {
2- kotlin(" jvm" ) version " 1.9.20 "
3- kotlin(" kapt" ) version " 1.9.20 "
4+ kotlin(" jvm" ) version " 2.0.21 "
5+ kotlin(" kapt" ) version " 2.0.21 "
46 id(" com.github.johnrengelman.shadow" ) version " 8.1.1"
57 `maven- publish`
68}
@@ -30,10 +32,10 @@ dependencies {
3032 compileOnly(project(mapOf (" path" to " :plugins:parsek-plugin-auth" )))
3133 compileOnly(project(mapOf (" path" to " :plugins:parsek-plugin-payment" )))
3234 } else {
33- compileOnly(" com.github.StatuParsek :Parsek:v2.3.0 " )
34- compileOnly(" com.github.StatuParsek :parsek-plugin-database:v1.2 .1" )
35- compileOnly(" com.github.StatuParsek :parsek-plugin-auth:v2.4.2 " )
36- compileOnly(" com.github.StatuParsek :parsek-plugin-payment:v1.1 .1" )
35+ compileOnly(" com.github.parsekdev :Parsek:v1.0.0-beta.7 " )
36+ compileOnly(" com.github.parsekdev :parsek-plugin-database:v1.0.0-dev .1" )
37+ compileOnly(" com.github.parsekdev :parsek-plugin-auth:v1.0.0-dev.1 " )
38+ compileOnly(" com.github.parsekdev :parsek-plugin-payment:v1.0.0-dev .1" )
3739 }
3840
3941 compileOnly(kotlin(" stdlib-jdk8" ))
@@ -124,4 +126,29 @@ publishing {
124126 }
125127 }
126128 }
129+ }
130+
131+ java {
132+ withJavadocJar()
133+ withSourcesJar()
134+
135+ // Use Java 21 for compilation
136+ toolchain {
137+ languageVersion.set(JavaLanguageVersion .of(21 ))
138+ }
139+ }
140+
141+ kotlin {
142+ jvmToolchain(21 ) // Ensure Kotlin uses the Java 21 toolchain
143+ }
144+
145+ tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > {
146+ compilerOptions {
147+ jvmTarget.set(JvmTarget .JVM_1_8 )
148+ }
149+ }
150+
151+ tasks.withType<JavaCompile > {
152+ sourceCompatibility = " 1.8"
153+ targetCompatibility = " 1.8"
127154}
0 commit comments