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,9 +14,9 @@ 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
- id(" org.jreleaser" ) version " 1.14 .0"
19
+ id(" org.jreleaser" ) version " 1.15 .0"
19
20
}
20
21
21
22
val versionProperties = Properties ().apply {
@@ -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,11 +82,20 @@ 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" )
82
91
}
83
92
93
+ tasks.named<Tar >(" shadowDistTar" ) {
94
+ archiveBaseName.set(" subpop" )
95
+ }
96
+
97
+
98
+
84
99
tasks.withType<Test > {
85
100
useJUnitPlatform()
86
101
maxHeapSize = " 5g" // Set the desired maximum heap size
@@ -193,8 +208,21 @@ jreleaser {
193
208
}
194
209
}
195
210
211
+ tasks.named(" distZip" ){
212
+ enabled = false
213
+ }
214
+
215
+ tasks.named(" distTar" ){
216
+ enabled = false
217
+ }
218
+
219
+ tasks.named(" jreleaserRelease" ) {
220
+ dependsOn(" shadowDistZip" )
221
+ dependsOn(" shadowDistTar" )
222
+ }
223
+
196
224
tasks.register(" release" ) {
197
- dependsOn(" distZip " )
225
+ dependsOn(" shadowDistZip " )
198
226
dependsOn(" jreleaserRelease" )
199
227
dependsOn(" jreleaserPackage" )
200
228
dependsOn(" jreleaserPublish" )
0 commit comments