Code Generation for TypedKeys (#9233)
Currently includes generated key holder classes for types used in the Registry Modification API
This commit is contained in:
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user