diff options
author | Jake Potrebic <[email protected]> | 2023-11-22 20:56:28 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-11-22 20:56:28 -0800 |
commit | 96d5e6ca481591842f44d05ab2451f943be6a7c7 (patch) | |
tree | ad35d855fa33f6feb8e365ce12aa312bd225ff3f /settings.gradle.kts | |
parent | e1cd9e59e53aabd50e501cb01feee277a8f69902 (diff) | |
download | Paper-96d5e6ca481591842f44d05ab2451f943be6a7c7.tar.gz Paper-96d5e6ca481591842f44d05ab2451f943be6a7c7.zip |
Code Generation for TypedKeys (#9233)
Currently includes generated key holder classes for types
used in the Registry Modification API
Diffstat (limited to 'settings.gradle.kts')
-rw-r--r-- | settings.gradle.kts | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/settings.gradle.kts b/settings.gradle.kts index e8d0e3de4c..f6aac1f56c 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -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") + } } |