@@ -38,13 +38,13 @@ val enableIntegrationTesting = !project.hasProperty("nointegration") && (version
38
38
val doAfterEvaluate = ArrayList < (Project ) -> Unit > ()
39
39
tasks {
40
40
val startServer by creating {
41
- group = " application"
42
41
dependsOn(" :server:run" )
42
+ group = " application"
43
43
}
44
44
45
45
val doc by creating(DokkaTask ::class ) {
46
- group = " documentation"
47
46
dependsOn(documentedProjects.map { " :$it :classes" })
47
+ group = " documentation"
48
48
outputDirectory = deployDir.resolve(" doc" ).toString()
49
49
outputFormat = " javadoc"
50
50
subProjects = documentedProjects
@@ -56,16 +56,16 @@ tasks {
56
56
}
57
57
58
58
val deploy by creating {
59
- group = " distribution"
60
59
dependsOn(doc)
61
60
dependOnSubprojects()
61
+ group = " distribution"
62
62
description = " Zips everything up for release into ${deployDir.relativeTo(projectDir)} "
63
63
outputs.dir(deployDir)
64
64
}
65
65
66
66
val release by creating {
67
+ dependsOn(clean, check)
67
68
group = " distribution"
68
- dependsOn(check)
69
69
description = " Prepares a new Release by bumping the version and creating a commit with a git tag of the new version"
70
70
doLast {
71
71
fun edit (original : String , version : String , new : Int ) =
@@ -115,8 +115,8 @@ tasks {
115
115
val maxGameLength = 150L
116
116
117
117
val testGame by creating {
118
- group = " verification"
119
118
dependsOn(" :server:deploy" , " :player:deployJar" )
119
+ group = " verification"
120
120
doFirst {
121
121
val testGameDir = testingDir.resolve(" game" )
122
122
testGameDir.deleteRecursively()
@@ -183,8 +183,8 @@ tasks {
183
183
}
184
184
185
185
val testTestClient by creating {
186
- group = " verification"
187
186
dependsOn(" :server:deploy" )
187
+ group = " verification"
188
188
shouldRunAfter(testGame)
189
189
val testClientGames = 3
190
190
doFirst {
@@ -215,10 +215,10 @@ tasks {
215
215
}
216
216
217
217
val integrationTest by creating {
218
- group = " verification"
219
218
dependsOn(testGame, " :player:playerTest" )
220
219
if (enableTestClient)
221
220
dependsOn(testTestClient)
221
+ group = " verification"
222
222
shouldRunAfter(test)
223
223
}
224
224
0 commit comments