Skip to content

Commit cf7b961

Browse files
committed
refactor: move plugin2025 into own subproject
Fixes failing XML Conversion tests and minimizes artifact size
1 parent d0f6a83 commit cf7b961

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+142
-50385
lines changed

gradle/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ val game by extra { "${gameName}_$year" }
2626
val deployDir by extra { buildDir.resolve("deploy") }
2727
val deployedPlayer by extra { "randomplayer-$gameName-$version.jar" }
2828
val testingDir by extra { buildDir.resolve("tests") }
29-
val documentedProjects = listOf("sdk", "plugin")
29+
val documentedProjects = listOf("sdk", "plugin$year")
3030

3131
val isBeta by extra { versionObject.minor == 0 }
3232
val enableTestClient by extra { arrayOf("check", "testTestClient").any { gradle.startParameter.taskNames.contains(it) } || !isBeta }

player/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tasks {
3434
}
3535

3636
val copyDocs by creating(Copy::class) {
37-
dependsOn(":sdk:doc", ":plugin:doc")
37+
dependsOn(":sdk:doc", ":plugin$year:doc")
3838
into(buildDir.resolve("zip"))
3939
with(copySpec {
4040
from(project(":plugin").buildDir.resolve("doc"))
@@ -69,7 +69,7 @@ tasks {
6969
.replace("TwoPlayerGameState<Move>", "GameState")
7070
}
7171
}, copySpec {
72-
from(configurations.default, arrayOf("sdk", "plugin")
72+
from(configurations.default, arrayOf("sdk", "plugin$year")
7373
.map { project(":$it").getTasksByName("sourcesJar", false) })
7474
into("lib")
7575
})

plugin/build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
val game: String by project
2-
31
dependencies {
42
api(project(":sdk"))
5-
6-
testImplementation(kotlin("script-runtime")) // for the ManualGameTest
73
}
84

95
tasks {
106
jar {
11-
archiveBaseName.set(game)
7+
archiveBaseName.set("mq")
128
}
139
}

plugin/res/background.jpg

-204 KB
Binary file not shown.

plugin/res/cancel.png

-4.02 KB
Binary file not shown.

plugin/res/cancel.svg

Lines changed: 0 additions & 66 deletions
This file was deleted.

plugin/res/goal.png

-8.27 KB
Binary file not shown.

0 commit comments

Comments
 (0)