Skip to content

Commit

Permalink
refactor: move plugin2025 into own subproject
Browse files Browse the repository at this point in the history
Fixes failing XML Conversion tests
and minimizes artifact size
  • Loading branch information
xeruf committed Jun 15, 2024
1 parent d0f6a83 commit cf7b961
Show file tree
Hide file tree
Showing 72 changed files with 142 additions and 50,385 deletions.
2 changes: 1 addition & 1 deletion gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ val game by extra { "${gameName}_$year" }
val deployDir by extra { buildDir.resolve("deploy") }
val deployedPlayer by extra { "randomplayer-$gameName-$version.jar" }
val testingDir by extra { buildDir.resolve("tests") }
val documentedProjects = listOf("sdk", "plugin")
val documentedProjects = listOf("sdk", "plugin$year")

val isBeta by extra { versionObject.minor == 0 }
val enableTestClient by extra { arrayOf("check", "testTestClient").any { gradle.startParameter.taskNames.contains(it) } || !isBeta }
Expand Down
4 changes: 2 additions & 2 deletions player/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tasks {
}

val copyDocs by creating(Copy::class) {
dependsOn(":sdk:doc", ":plugin:doc")
dependsOn(":sdk:doc", ":plugin$year:doc")
into(buildDir.resolve("zip"))
with(copySpec {
from(project(":plugin").buildDir.resolve("doc"))
Expand Down Expand Up @@ -69,7 +69,7 @@ tasks {
.replace("TwoPlayerGameState<Move>", "GameState")
}
}, copySpec {
from(configurations.default, arrayOf("sdk", "plugin")
from(configurations.default, arrayOf("sdk", "plugin$year")
.map { project(":$it").getTasksByName("sourcesJar", false) })
into("lib")
})
Expand Down
6 changes: 1 addition & 5 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
val game: String by project

dependencies {
api(project(":sdk"))

testImplementation(kotlin("script-runtime")) // for the ManualGameTest
}

tasks {
jar {
archiveBaseName.set(game)
archiveBaseName.set("mq")
}
}
Binary file removed plugin/res/background.jpg
Binary file not shown.
Binary file removed plugin/res/cancel.png
Binary file not shown.
66 changes: 0 additions & 66 deletions plugin/res/cancel.svg

This file was deleted.

Binary file removed plugin/res/goal.png
Binary file not shown.
Loading

0 comments on commit cf7b961

Please sign in to comment.