Skip to content

Commit b3c403d

Browse files
committed
chore(gradle): clean before release
1 parent 569ad4b commit b3c403d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

gradle/build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ val enableIntegrationTesting = !project.hasProperty("nointegration") && (version
3838
val doAfterEvaluate = ArrayList<(Project) -> Unit>()
3939
tasks {
4040
val startServer by creating {
41-
group = "application"
4241
dependsOn(":server:run")
42+
group = "application"
4343
}
4444

4545
val doc by creating(DokkaTask::class) {
46-
group = "documentation"
4746
dependsOn(documentedProjects.map { ":$it:classes" })
47+
group = "documentation"
4848
outputDirectory = deployDir.resolve("doc").toString()
4949
outputFormat = "javadoc"
5050
subProjects = documentedProjects
@@ -56,16 +56,16 @@ tasks {
5656
}
5757

5858
val deploy by creating {
59-
group = "distribution"
6059
dependsOn(doc)
6160
dependOnSubprojects()
61+
group = "distribution"
6262
description = "Zips everything up for release into ${deployDir.relativeTo(projectDir)}"
6363
outputs.dir(deployDir)
6464
}
6565

6666
val release by creating {
67+
dependsOn(clean, check)
6768
group = "distribution"
68-
dependsOn(check)
6969
description = "Prepares a new Release by bumping the version and creating a commit with a git tag of the new version"
7070
doLast {
7171
fun edit(original: String, version: String, new: Int) =
@@ -115,8 +115,8 @@ tasks {
115115
val maxGameLength = 150L
116116

117117
val testGame by creating {
118-
group = "verification"
119118
dependsOn(":server:deploy", ":player:deployJar")
119+
group = "verification"
120120
doFirst {
121121
val testGameDir = testingDir.resolve("game")
122122
testGameDir.deleteRecursively()
@@ -183,8 +183,8 @@ tasks {
183183
}
184184

185185
val testTestClient by creating {
186-
group = "verification"
187186
dependsOn(":server:deploy")
187+
group = "verification"
188188
shouldRunAfter(testGame)
189189
val testClientGames = 3
190190
doFirst {
@@ -215,10 +215,10 @@ tasks {
215215
}
216216

217217
val integrationTest by creating {
218-
group = "verification"
219218
dependsOn(testGame, ":player:playerTest")
220219
if (enableTestClient)
221220
dependsOn(testTestClient)
221+
group = "verification"
222222
shouldRunAfter(test)
223223
}
224224

0 commit comments

Comments
 (0)