1
+ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
1
2
import org.jreleaser.model.Active
2
3
import org.jreleaser.model.Distribution
3
4
import org.jreleaser.model.Stereotype
@@ -13,7 +14,7 @@ import java.util.*
13
14
*/
14
15
15
16
plugins {
16
- id(" com.github.johnrengelman. shadow" ) version " 8.1.1 "
17
+ id(" com.gradleup. shadow" ) version " 8.3.5 "
17
18
id(" io.micronaut.application" ) version " 4.4.3"
18
19
id(" org.jreleaser" ) version " 1.14.0"
19
20
}
@@ -65,6 +66,11 @@ dependencies {
65
66
implementation(" ch.qos.logback:logback-classic:1.5.11" )
66
67
}
67
68
69
+ java {
70
+ sourceCompatibility = JavaVersion .VERSION_21
71
+ targetCompatibility = JavaVersion .VERSION_21
72
+ }
73
+
68
74
application {
69
75
applicationName = " subpop"
70
76
mainClass = " io.clusterless.subpop.Main"
@@ -76,9 +82,16 @@ distributions {
76
82
}
77
83
}
78
84
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" )
91
+ }
92
+
93
+ tasks.named<Tar >(" shadowDistTar" ) {
94
+ archiveBaseName.set(" subpop" )
82
95
}
83
96
84
97
tasks.withType<Test > {
@@ -194,7 +207,7 @@ jreleaser {
194
207
}
195
208
196
209
tasks.register(" release" ) {
197
- dependsOn(" distZip " )
210
+ dependsOn(" shadowDistZip " )
198
211
dependsOn(" jreleaserRelease" )
199
212
dependsOn(" jreleaserPackage" )
200
213
dependsOn(" jreleaserPublish" )
0 commit comments