Skip to content

Commit c2bd5b0

Browse files
committed
fix release task
1 parent 2775e28 commit c2bd5b0

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

build.gradle.kts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,7 @@ Include native libraries for SDL3 in the jar.
194194

195195
val releaseModVersion by tasks.registering {
196196
group = "controlify/versioned"
197-
198197
dependsOn("publishMods")
199-
200-
if (!project.publishMods.dryRun.get()) {
201-
dependsOn("publish")
202-
}
203198
}
204199
createActiveTask(releaseModVersion)
205200

stonecutter.gradle.kts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ plugins {
1313

1414
stonecutter active file("versions/current")
1515

16-
// subprojects depend themselves on this task
17-
val releaseModVersions by tasks.registering {
18-
group = "controlify"
19-
}
20-
2116
// download the most up to date controller database for SDL2
2217
val downloadHidDb by tasks.registering(Download::class) {
2318
finalizedBy("convertHidDBToSDL3")
@@ -51,6 +46,8 @@ val modVersion: String by project
5146
version = modVersion
5247

5348
publishMods {
49+
dryRun = false
50+
5451
val modChangelog = provider {
5552
rootProject.file("changelog.md")
5653
.takeIf { it.exists() }
@@ -70,6 +67,15 @@ publishMods {
7067
)
7168
}
7269

70+
// subprojects depend themselves on this task
71+
val releaseModVersions by tasks.registering {
72+
group = "controlify"
73+
74+
if (!publishMods.dryRun.get()) {
75+
dependsOn("publishAggregationToCentralPortal")
76+
}
77+
}
78+
7379
nmcpAggregation {
7480
centralPortal {
7581
username = secrets.gradleProperty("mcentral.username")

0 commit comments

Comments
 (0)