Code Generation for TypedKeys (#9233)

Currently includes generated key holder classes for types
used in the Registry Modification API
This commit is contained in:
Jake Potrebic
2023-11-22 20:56:28 -08:00
parent f5c68d86b0
commit 867ce6cc0a
17 changed files with 2061 additions and 5 deletions

View File

@ -39,9 +39,19 @@ for (name in listOf("Paper-API", "Paper-Server", "Paper-MojangAPI")) {
findProject(":$projName")!!.projectDir = file(name)
}
val testPlugin = file("test-plugin.settings.gradle.kts")
if (testPlugin.exists()) {
apply(from = testPlugin)
} else {
testPlugin.writeText("// Uncomment to enable the test plugin module\n//include(\":test-plugin\")\n")
mapOf("test-plugin.settings.gradle.kts" to """
// Uncomment to enable the test plugin module
// include(":test-plugin")
""".trimIndent(),
"paper-api-generator.settings.gradle.kts" to """
// Uncomment to enable the api generator module
// include(":paper-api-generator")
""".trimIndent()
).forEach { (fileName, text) ->
val settingsFile = file(fileName)
if (settingsFile.exists()) {
apply(from = settingsFile)
} else {
settingsFile.writeText(text + "\n")
}
}