⁠
rednesto: Bump templates
Copy
Copy
- {
- "version": 1,
- "group": "mod",
- "properties": [
- {
- "name": "BUILD_COORDS",
- "type": "build_system_coordinates",
- "order": 10
- },
- {
- "name": "VERSIONS",
- "type": "forge_versions",
- "parameters": {
- "mcVersionFilter": "$MC_VERSION.compareTo($mcver.MC1_16) >= 0"
- }
- },
- {
- "name": "USE_MIXINS",
- "type": "boolean",
- "remember": "forge.USE_MIXINS",
- "default": false
- },
- {
- "name": "MOD_ID",
- "type": "string",
- "validator": "[a-z][a-z0-9_]{1,63}",
- "derives": {
- "parents": ["PROJECT_NAME"],
- "method": "replace",
- "parameters": {
- "regex": "[^a-z0-9-_]+",
- "replacement": "_",
- "maxLength": 64,
- "lowercase": true
- }
- }
- },
- {
- "name": "MOD_NAME",
- "type": "string",
- "inheritFrom": "PROJECT_NAME"
- },
- {
- "name": "MAIN_CLASS",
- "type": "class_fqn",
- "derives": {
- "parents": ["BUILD_COORDS", "MOD_ID"],
- "method": "suggestClassName"
- }
- },
- {
- "name": "LICENSE",
- "type": "license"
- },
- {
- "label": "creator.ui.optional_settings.label",
- "collapsible": true,
- "groupProperties": [
- {
- "name": "DESCRIPTION",
- "type": "string",
- "default": ""
- },
- {
- "name": "AUTHORS",
- "type": "inline_string_list",
- "default": ""
- },
- {
- "name": "WEBSITE",
- "type": "string",
- "default": ""
- },
- {
- "name": "UPDATE_URL",
- "type": "string",
- "default": "",
- "nullIfDefault": true
- }
- ]
- },
- {
- "name": "JAVA_VERSION",
- "type": "integer",
- "order": 20,
- "default": 17,
- "visible": false,
- "derives": {
- "parents": ["VERSIONS"],
- "method": "recommendJavaVersionForMcVersion",
- "default": 17
- }
- },
- {
- "name": "JDK",
- "type": "jdk",
- "order": 20,
- "default": "JAVA_VERSION"
- }
- ],
- "files": [
- {
- "template": "../Gradle.gitignore.ft",
- "destination": ".gitignore",
- "condition": "$USE_GIT"
- },
- {
- "template": "build.gradle.ft",
- "destination": "build.gradle"
- },
- {
- "template": "settings.gradle.ft",
- "destination": "settings.gradle"
- },
- {
- "template": "gradle.properties.ft",
- "destination": "gradle.properties"
- },
- {
- "template": "../gradle-wrapper.properties.ft",
- "destination": "gradle/wrapper/gradle-wrapper.properties"
- },
- {
- "template": "mods.toml.ft",
- "destination": "src/main/resources/META-INF/mods.toml"
- },
- {
- "template": "pack.mcmeta.ft",
- "destination": "src/main/resources/pack.mcmeta"
- },
- {
- "template": "MixinsConfig.json.ft",
- "destination": "src/main/resources/${MOD_ID}.mixins.json",
- "condition": "$USE_MIXINS"
- },
- {
- "template": "MainClass (1.16+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_16) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_17) < 0",
- "openInEditor": true
- },
- {
- "template": "MainClass (1.17+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_17) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_18) < 0",
- "openInEditor": true
- },
- {
- "template": "MainClass (1.18+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_18) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_19) < 0",
- "openInEditor": true
- },
- {
- "template": "MainClass (1.19+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_19) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_19_3) < 0",
- "openInEditor": true
- },
- {
- "template": "MainClass (1.19.3+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_19_3) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_20) < 0",
- "openInEditor": true
- },
- {
- "template": "MainClass (1.20+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_20) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_20_6) < 0",
- "openInEditor": true
- },
- {
- "template": "MainClass (1.20.6+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_20_6) >= 0",
- "openInEditor": true
- },
- {
- "template": "Config (1.20.2+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.packagePath}/Config.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_20_2) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_21) < 0",
- "openInEditor": true
- },
- {
- "template": "Config (1.21+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.packagePath}/Config.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_21) >= 0",
- "openInEditor": true
- }
- ],
- "finalizers": [
- {
- "type": "import_gradle_project"
- },
- {
- "type": "run_gradle_tasks",
- "tasks": ["wrapper", "genIntellijRuns"]
- },
- {
- "type": "git_add_all",
- "condition": "$USE_GIT"
- }
- ]
- }
- {
- "version": 1,
- "group": "mod",
- "properties": [
- {
- "name": "BUILD_COORDS",
- "type": "build_system_coordinates",
- "order": 10
- },
- {
- "name": "VERSIONS",
- "type": "forge_versions",
- "parameters": {
- "mcVersionFilter": "$MC_VERSION.compareTo($mcver.MC1_16) >= 0"
- }
- },
- {
- "name": "USE_MIXINS",
- "type": "boolean",
- "remember": "forge.USE_MIXINS",
- "default": false
- },
- {
- "name": "MOD_ID",
- "type": "string",
- "validator": "[a-z][a-z0-9_]{1,63}",
- "derives": {
- "parents": ["PROJECT_NAME"],
- "method": "replace",
- "parameters": {
- "regex": "[^a-z0-9-_]+",
- "replacement": "_",
- "maxLength": 64,
- "lowercase": true
- }
- }
- },
- {
- "name": "MOD_NAME",
- "type": "string",
- "inheritFrom": "PROJECT_NAME"
- },
- {
- "name": "MAIN_CLASS",
- "type": "class_fqn",
- "derives": {
- "parents": ["BUILD_COORDS", "MOD_ID"],
- "method": "suggestClassName"
- }
- },
- {
- "name": "LICENSE",
- "type": "license"
- },
- {
- "label": "creator.ui.optional_settings.label",
- "collapsible": true,
- "groupProperties": [
- {
- "name": "DESCRIPTION",
- "type": "string",
- "default": ""
- },
- {
- "name": "AUTHORS",
- "type": "inline_string_list",
- "default": ""
- },
- {
- "name": "WEBSITE",
- "type": "string",
- "default": ""
- },
- {
- "name": "UPDATE_URL",
- "type": "string",
- "default": "",
- "nullIfDefault": true
- }
- ]
- },
- {
- "name": "JAVA_VERSION",
- "type": "integer",
- "order": 20,
- "default": 17,
- "visible": false,
- "derives": {
- "parents": ["VERSIONS"],
- "method": "recommendJavaVersionForMcVersion",
- "default": 17
- }
- },
- {
- "name": "JDK",
- "type": "jdk",
- "order": 20,
- "default": "JAVA_VERSION"
- }
- ],
- "files": [
- {
- "template": "../Gradle.gitignore.ft",
- "destination": ".gitignore",
- "condition": "$USE_GIT"
- },
- {
- "template": "build.gradle.ft",
- "destination": "build.gradle"
- },
- {
- "template": "settings.gradle.ft",
- "destination": "settings.gradle"
- },
- {
- "template": "gradle.properties.ft",
- "destination": "gradle.properties"
- },
- {
- "template": "../gradle-wrapper.properties.ft",
- "destination": "gradle/wrapper/gradle-wrapper.properties"
- },
- {
- "template": "mods.toml.ft",
- "destination": "src/main/resources/META-INF/mods.toml"
- },
- {
- "template": "pack.mcmeta.ft",
- "destination": "src/main/resources/pack.mcmeta"
- },
- {
- "template": "MixinsConfig.json.ft",
- "destination": "src/main/resources/${MOD_ID}.mixins.json",
- "condition": "$USE_MIXINS"
- },
- {
- "template": "MainClass (1.16+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_16) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_17) < 0",
- "openInEditor": true
- },
- {
- "template": "MainClass (1.17+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_17) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_18) < 0",
- "openInEditor": true
- },
- {
- "template": "MainClass (1.18+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_18) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_19) < 0",
- "openInEditor": true
- },
- {
- "template": "MainClass (1.19+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_19) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_19_3) < 0",
- "openInEditor": true
- },
- {
- "template": "MainClass (1.19.3+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_19_3) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_20) < 0",
- "openInEditor": true
- },
- {
- "template": "MainClass (1.20+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_20) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_20_6) < 0",
- "openInEditor": true
- },
- {
- "template": "MainClass (1.20.6+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.path}.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_20_6) >= 0",
- "openInEditor": true
- },
- {
- "template": "Config (1.20.1+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.packagePath}/Config.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_20_1) >= 0 && $VERSIONS.minecraft.compareTo($mcver.MC1_21) < 0",
- "openInEditor": true
- },
- {
- "template": "Config (1.21+).java.ft",
- "destination": "src/main/java/${MAIN_CLASS.packagePath}/Config.java",
- "condition": "$VERSIONS.minecraft.compareTo($mcver.MC1_21) >= 0",
- "openInEditor": true
- }
- ],
- "finalizers": [
- {
- "type": "import_gradle_project"
- },
- {
- "type": "run_gradle_tasks",
- "tasks": ["wrapper", "genIntellijRuns"]
- },
- {
- "type": "git_add_all",
- "condition": "$USE_GIT"
- }
- ]
- }