⁠
rednesto: Bump templates
Copy
Copy
- {
- "version": 1,
- "group": "plugin",
- "properties": [
- {
- "name": "BUILD_COORDS",
- "type": "build_system_coordinates",
- "order": 10
- },
- {
- "name": "BUILD_SYSTEM",
- "type": "string",
- "options": [
- "Gradle",
- "Maven"
- ]
- },
- {
- "name": "LANGUAGE",
- "type": "string",
- "options": [
- "Java",
- "Kotlin"
- ]
- },
- {
- "name": "MC_VERSION",
- "type": "semantic_version",
- "forceDropdown": true,
- "options": [
- "1.21",
- "1.20.6",
- "1.20.4",
- "1.20.3",
- "1.20.2",
- "1.20.1",
- "1.19.4",
- "1.18.2"
- ],
- "default": 0
- },
- {
- "name": "KOTLIN_VERSION",
- "type": "maven_artifact_version",
- "parameters": {
- "sourceUrl": "https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/maven-metadata.xml"
- },
- "visible": {
- "dependsOn": ["LANGUAGE"],
- "condition": "$LANGUAGE == 'Kotlin'"
- }
- },
- {
- "name": "API_VERSION",
- "type": "semantic_version",
- "options": [
- "1.21",
- "1.20",
- "1.19",
- "1.18",
- "1.17"
- ],
- "visible": false,
- "derives": {
- "parents": ["MC_VERSION"],
- "method": "extractVersionMajorMinor"
- }
- },
- {
- "name": "PLUGIN_NAME",
- "type": "string",
- "inheritFrom": "PROJECT_NAME"
- },
- {
- "name": "MAIN_CLASS",
- "type": "class_fqn",
- "derives": {
- "parents": ["BUILD_COORDS", "PLUGIN_NAME"],
- "method": "suggestClassName"
- }
- },
- {
- "label": "creator.ui.optional_settings.label",
- "collapsible": true,
- "groupProperties": [
- {
- "name": "DESCRIPTION",
- "type": "string",
- "default": "",
- "nullIfDefault": true
- },
- {
- "name": "AUTHORS",
- "type": "inline_string_list",
- "default": "",
- "nullIfDefault": true
- },
- {
- "name": "WEBSITE",
- "type": "string",
- "default": "",
- "nullIfDefault": true
- },
- {
- "name": "LOG_PREFIX",
- "type": "string",
- "default": "",
- "nullIfDefault": true
- },
- {
- "name": "LOAD_AT",
- "type": "string",
- "options": [
- "STARTUP",
- "POSTWORLD"
- ],
- "default": "POSTWORLD",
- "nullIfDefault": true
- }
- ]
- },
- {
- "name": "JAVA_VERSION",
- "type": "integer",
- "order": 20,
- "default": 17,
- "visible": false,
- "derives": {
- "parents": ["MC_VERSION"],
- "method": "recommendJavaVersionForMcVersion",
- "default": 17
- }
- },
- {
- "name": "JDK",
- "type": "jdk",
- "order": 20,
- "default": "JAVA_VERSION"
- },
- {
- "name": "IS_SPIGOT",
- "type": "boolean",
- "visible": false,
- "default": true
- }
- ],
- "files": [
- {
- "template": "../${BUILD_SYSTEM}.gitignore.ft",
- "destination": ".gitignore",
- "condition": "$USE_GIT"
- },
- {
- "template": "build.gradle.ft",
- "destination": "build.gradle",
- "condition": "$BUILD_SYSTEM=='Gradle' && $LANGUAGE=='Java'"
- },
- {
- "template": "settings.gradle.ft",
- "destination": "settings.gradle",
- "condition": "$BUILD_SYSTEM=='Gradle' && $LANGUAGE=='Java'"
- },
- {
- "template": "build.gradle.kts.ft",
- "destination": "build.gradle.kts",
- "condition": "$BUILD_SYSTEM=='Gradle' && $LANGUAGE=='Kotlin'"
- },
- {
- "template": "settings.gradle.kts.ft",
- "destination": "settings.gradle.kts",
- "condition": "$BUILD_SYSTEM=='Gradle' && $LANGUAGE=='Kotlin'"
- },
- {
- "template": "gradle.properties.ft",
- "destination": "gradle.properties",
- "condition": "$BUILD_SYSTEM=='Gradle'"
- },
- {
- "template": "../gradle-wrapper.properties.ft",
- "destination": "gradle/wrapper/gradle-wrapper.properties",
- "condition": "$BUILD_SYSTEM=='Gradle'"
- },
- {
- "template": "pom.xml.ft",
- "destination": "pom.xml",
- "condition": "$BUILD_SYSTEM=='Maven'"
- },
- {
- "template": "plugin.yml.ft",
- "destination": "src/main/resources/plugin.yml"
- },
- {
- "template": "MainClass.java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "openInEditor": true
- },
- {
- "template": "MainClass.kt.ft",
- "destination": "src/main/kotlin/${MAIN_CLASS.path}.kt",
- "condition": "$LANGUAGE=='Kotlin'",
- "openInEditor": true
- }
- ],
- "finalizers": [
- {
- "type": "import_maven_project",
- "condition": "$BUILD_SYSTEM=='Maven'"
- },
- {
- "type": "import_gradle_project",
- "condition": "$BUILD_SYSTEM=='Gradle'"
- },
- {
- "type": "run_gradle_tasks",
- "tasks": ["wrapper"],
- "condition": "$BUILD_SYSTEM=='Gradle'"
- },
- {
- "type": "git_add_all",
- "condition": "$USE_GIT"
- }
- ]
- }
- {
- "version": 1,
- "group": "plugin",
- "properties": [
- {
- "name": "BUILD_COORDS",
- "type": "build_system_coordinates",
- "order": 10
- },
- {
- "name": "BUILD_SYSTEM",
- "type": "string",
- "options": [
- "Gradle",
- "Maven"
- ]
- },
- {
- "name": "LANGUAGE",
- "type": "string",
- "options": [
- "Java",
- "Kotlin"
- ]
- },
- {
- "name": "MC_VERSION",
- "type": "semantic_version",
- "forceDropdown": true,
- "options": [
- "1.21",
- "1.20.6",
- "1.20.4",
- "1.20.3",
- "1.20.2",
- "1.20.1",
- "1.19.4",
- "1.18.2"
- ],
- "default": 0
- },
- {
- "name": "KOTLIN_VERSION",
- "type": "maven_artifact_version",
- "parameters": {
- "sourceUrl": "https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/maven-metadata.xml"
- },
- "visible": {
- "dependsOn": ["LANGUAGE"],
- "condition": "$LANGUAGE == 'Kotlin'"
- }
- },
- {
- "name": "API_VERSION",
- "type": "semantic_version",
- "options": [
- "1.21",
- "1.20",
- "1.19",
- "1.18",
- "1.17"
- ],
- "visible": false,
- "derives": {
- "parents": ["MC_VERSION"],
- "method": "extractVersionMajorMinor"
- }
- },
- {
- "name": "PLUGIN_NAME",
- "type": "string",
- "inheritFrom": "PROJECT_NAME"
- },
- {
- "name": "MAIN_CLASS",
- "type": "class_fqn",
- "derives": {
- "parents": ["BUILD_COORDS", "PLUGIN_NAME"],
- "method": "suggestClassName"
- }
- },
- {
- "label": "creator.ui.optional_settings.label",
- "collapsible": true,
- "groupProperties": [
- {
- "name": "DESCRIPTION",
- "type": "string",
- "default": "",
- "nullIfDefault": true
- },
- {
- "name": "AUTHORS",
- "type": "inline_string_list",
- "default": "",
- "nullIfDefault": true
- },
- {
- "name": "WEBSITE",
- "type": "string",
- "default": "",
- "nullIfDefault": true
- },
- {
- "name": "LOG_PREFIX",
- "type": "string",
- "default": "",
- "nullIfDefault": true
- },
- {
- "name": "LOAD_AT",
- "type": "string",
- "options": [
- "STARTUP",
- "POSTWORLD"
- ],
- "default": "POSTWORLD",
- "nullIfDefault": true
- }
- ]
- },
- {
- "name": "JAVA_VERSION",
- "type": "integer",
- "order": 20,
- "default": 17,
- "visible": false,
- "derives": {
- "parents": ["MC_VERSION"],
- "method": "recommendJavaVersionForMcVersion",
- "default": 17
- }
- },
- {
- "name": "JDK",
- "type": "jdk",
- "order": 20,
- "default": "JAVA_VERSION"
- },
- {
- "name": "IS_SPIGOT",
- "type": "boolean",
- "visible": false,
- "default": true
- }
- ],
- "files": [
- {
- "template": "../${BUILD_SYSTEM}.gitignore.ft",
- "destination": ".gitignore",
- "condition": "$USE_GIT"
- },
- {
- "template": "build.gradle.ft",
- "destination": "build.gradle",
- "condition": "$BUILD_SYSTEM=='Gradle' && $LANGUAGE=='Java'"
- },
- {
- "template": "settings.gradle.ft",
- "destination": "settings.gradle",
- "condition": "$BUILD_SYSTEM=='Gradle' && $LANGUAGE=='Java'"
- },
- {
- "template": "build.gradle.kts.ft",
- "destination": "build.gradle.kts",
- "condition": "$BUILD_SYSTEM=='Gradle' && $LANGUAGE=='Kotlin'"
- },
- {
- "template": "settings.gradle.kts.ft",
- "destination": "settings.gradle.kts",
- "condition": "$BUILD_SYSTEM=='Gradle' && $LANGUAGE=='Kotlin'"
- },
- {
- "template": "gradle.properties.ft",
- "destination": "gradle.properties",
- "condition": "$BUILD_SYSTEM=='Gradle'"
- },
- {
- "template": "../gradle-wrapper.properties.ft",
- "destination": "gradle/wrapper/gradle-wrapper.properties",
- "condition": "$BUILD_SYSTEM=='Gradle'"
- },
- {
- "template": "pom.xml.ft",
- "destination": "pom.xml",
- "condition": "$BUILD_SYSTEM=='Maven'"
- },
- {
- "template": "plugin.yml.ft",
- "destination": "src/main/resources/plugin.yml"
- },
- {
- "template": "MainClass.java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$LANGUAGE=='Java'",
- "openInEditor": true
- },
- {
- "template": "MainClass.kt.ft",
- "destination": "src/main/kotlin/${MAIN_CLASS.path}.kt",
- "condition": "$LANGUAGE=='Kotlin'",
- "openInEditor": true
- }
- ],
- "finalizers": [
- {
- "type": "import_maven_project",
- "condition": "$BUILD_SYSTEM=='Maven'"
- },
- {
- "type": "import_gradle_project",
- "condition": "$BUILD_SYSTEM=='Gradle'"
- },
- {
- "type": "run_gradle_tasks",
- "tasks": ["wrapper"],
- "condition": "$BUILD_SYSTEM=='Gradle'"
- },
- {
- "type": "git_add_all",
- "condition": "$USE_GIT"
- }
- ]
- }