@@ -10,24 +10,26 @@ plugins {
1010 id(" signing" )
1111}
1212
13- def jarVersion = " 3.0.0 "
13+ def jarVersion = " 3.0.1 "
1414group = ' io.nats.nkeys'
1515
1616def isRelease = System . getenv(" BUILD_EVENT" ) == " release"
1717def tc = System . getenv(" TARGET_COMPATIBILITY" )
18- def targetJavaVersion = tc == null ? JavaVersion . VERSION_1_8 : JavaVersion . toVersion(tc)
18+ def targetJavaVersion = tc == null ? JavaVersion . VERSION_17 : JavaVersion . toVersion(tc)
1919def targetId = targetJavaVersion. toString()
20- def artifact = " lts" + (targetJavaVersion == JavaVersion . VERSION_1_8 ? " " : " -jdk" + targetId)
21- def bundleName = " io.nats.nkeys.lts" + (targetJavaVersion == JavaVersion . VERSION_1_8 ? " " : " .jdk" + targetId)
20+ def artifact = " lts-jdk" + targetId
21+ def bundleName = " io.nats.nkeys.lts.jdk" + targetId
22+ def coreName = " core-jdk" + targetId
2223
2324System . out. println (" targetCompatibility: " + targetId)
2425System . out. println (" artifact: " + artifact)
26+ System . out. println (" core: " + coreName)
2527System . out. println (" bundleName: " + bundleName)
2628
2729version = isRelease ? jarVersion : jarVersion + " -SNAPSHOT" // version is the variable the gradle uses.
2830
2931java {
30- sourceCompatibility = JavaVersion . VERSION_1_8
32+ sourceCompatibility = JavaVersion . VERSION_17
3133 targetCompatibility = targetJavaVersion
3234 withSourcesJar()
3335 withJavadocJar()
@@ -41,7 +43,7 @@ repositories {
4143}
4244
4345dependencies {
44- implementation ' io.nats.nkeys:core :3.0.0-SNAPSHOT '
46+ implementation ' io.nats.nkeys:' + coreName + ' :3.0.1 '
4547 implementation ' org.bouncycastle:bcprov-lts8on:2.73.10'
4648 implementation ' org.jspecify:jspecify:1.0.0'
4749
0 commit comments