@@ -3,14 +3,14 @@ import org.jreleaser.model.Active
33import org.jreleaser.model.Http
44
55plugins {
6- kotlin(" jvm" ).version(" 2.2 .10" )
6+ kotlin(" jvm" ).version(" 2.3 .10" )
77 `java- library`
88 `maven- publish`
9- id(" org.jreleaser" ) version " 1.19 .0"
9+ id(" org.jreleaser" ) version " 1.23 .0"
1010}
1111
1212group = " io.github.froks"
13- version = " 0.4.1 "
13+ version = " 0.4.3 "
1414
1515repositories {
1616 mavenLocal()
@@ -26,7 +26,7 @@ kotlin {
2626 jvmToolchain(21 )
2727 explicitApi()
2828 compilerOptions {
29- jvmTarget = JvmTarget .JVM_1_8
29+ jvmTarget = JvmTarget .JVM_21
3030 }
3131}
3232
@@ -36,13 +36,13 @@ java {
3636}
3737
3838tasks.withType<JavaCompile >().configureEach {
39- targetCompatibility = " 1.8 "
40- sourceCompatibility = " 1.8 "
39+ targetCompatibility = " 21 "
40+ sourceCompatibility = " 21 "
4141}
4242
4343tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > ().configureEach {
4444 compilerOptions {
45- jvmTarget.set(JvmTarget .JVM_1_8 )
45+ jvmTarget.set(JvmTarget .JVM_21 )
4646 freeCompilerArgs.add(" -opt-in=kotlin.RequiresOptIn" )
4747 }
4848}
@@ -100,9 +100,10 @@ jreleaser {
100100 maven {
101101 mavenCentral.create(" sonatype" ) {
102102 active = Active .ALWAYS
103- username = System .getenv(" JRELEASER_MAVENCENTRAL_USERNAME" )
104103 url = " https://central.sonatype.com/api/v1/publisher"
105104 authorization = Http .Authorization .BEARER
105+ username = System .getenv(" JRELEASER_MAVENCENTRAL_USERNAME" )
106+ password = System .getenv(" JRELEASER_MAVENCENTRAL_PASSWORD" )
106107 stagingRepository(layout.buildDirectory.dir(" staging-deploy" ).get().toString())
107108 }
108109 }
0 commit comments