1+ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
12import org.jreleaser.model.Active
23import org.jreleaser.model.Distribution
34import org.jreleaser.model.Stereotype
@@ -13,9 +14,9 @@ import java.util.*
1314 */
1415
1516plugins {
16- id(" com.github.johnrengelman. shadow" ) version " 8.1.1 "
17+ id(" com.gradleup. shadow" ) version " 8.3.5 "
1718 id(" io.micronaut.application" ) version " 4.4.3"
18- id(" org.jreleaser" ) version " 1.14 .0"
19+ id(" org.jreleaser" ) version " 1.15 .0"
1920}
2021
2122val versionProperties = Properties ().apply {
@@ -65,6 +66,11 @@ dependencies {
6566 implementation(" ch.qos.logback:logback-classic:1.5.11" )
6667}
6768
69+ java {
70+ sourceCompatibility = JavaVersion .VERSION_21
71+ targetCompatibility = JavaVersion .VERSION_21
72+ }
73+
6874application {
6975 applicationName = " subpop"
7076 mainClass = " io.clusterless.subpop.Main"
@@ -76,11 +82,20 @@ distributions {
7682 }
7783}
7884
79- java {
80- sourceCompatibility = JavaVersion .VERSION_21
81- targetCompatibility = JavaVersion .VERSION_21
85+ tasks.withType<ShadowJar >{
86+ archiveBaseName.set(" subpop" )
87+ }
88+
89+ tasks.named<Zip >(" shadowDistZip" ) {
90+ archiveBaseName.set(" subpop" )
8291}
8392
93+ tasks.named<Tar >(" shadowDistTar" ) {
94+ archiveBaseName.set(" subpop" )
95+ }
96+
97+
98+
8499tasks.withType<Test > {
85100 useJUnitPlatform()
86101 maxHeapSize = " 5g" // Set the desired maximum heap size
@@ -193,8 +208,20 @@ jreleaser {
193208 }
194209}
195210
211+ tasks.named(" distZip" ){
212+ enabled = false
213+ }
214+
215+ tasks.named(" distTar" ){
216+ enabled = false
217+ }
218+
219+ tasks.named(" jreleaserPackage" ) {
220+ dependsOn(" shadowDistZip" )
221+ dependsOn(" shadowDistTar" )
222+ }
223+
196224tasks.register(" release" ) {
197- dependsOn(" distZip" )
198225 dependsOn(" jreleaserRelease" )
199226 dependsOn(" jreleaserPackage" )
200227 dependsOn(" jreleaserPublish" )
0 commit comments