⁠
rednesto: Bump templates
Copy
Copy
- {
- "version": 1,
- "group": "proxy",
- "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": "VELOCITY_VERSION",
- "type": "semantic_version",
- "forceDropdown": true,
- "options": [
- "3.3.0-SNAPSHOT",
- "3.2.0-SNAPSHOT",
- "3.1.2-SNAPSHOT",
- "3.1.1"
- ],
- "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": "PLUGIN_NAME",
- "type": "string",
- "inheritFrom": "PROJECT_NAME"
- },
- {
- "name": "PLUGIN_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
- }
- }
- },
- {
- "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": "JAVA_VERSION",
- "type": "integer",
- "order": 20,
- "default": 17,
- "visible": false,
- "derives": {
- "parents": ["VELOCITY_VERSION"],
- "default": 8,
- "select": [
- {
- "condition": "$VELOCITY_VERSION.compareTo($semver.release(3, 3)) >= 0",
- "value": 17
- },
- {
- "condition": "$VELOCITY_VERSION.compareTo($semver.release(3)) >= 0",
- "value": 11
- }
- ]
- }
- },
- {
- "name": "JDK",
- "type": "jdk",
- "order": 20,
- "default": "JAVA_VERSION"
- }
- ],
- "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": "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
- },
- {
- "template": "BuildConstants.java.ft",
- "destination": "src/main/templates/${MAIN_CLASS.packagePath}/BuildConstants.java",
- "condition": "$BUILD_SYSTEM=='Gradle'"
- }
- ],
- "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": "proxy",
- "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": "VELOCITY_VERSION",
- "type": "semantic_version",
- "forceDropdown": true,
- "options": [
- "3.3.0-SNAPSHOT",
- "3.2.0-SNAPSHOT",
- "3.1.2-SNAPSHOT",
- "3.1.1"
- ],
- "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": "PLUGIN_NAME",
- "type": "string",
- "inheritFrom": "PROJECT_NAME"
- },
- {
- "name": "PLUGIN_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": "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": "JAVA_VERSION",
- "type": "integer",
- "order": 20,
- "default": 17,
- "visible": false,
- "derives": {
- "parents": ["VELOCITY_VERSION"],
- "default": 8,
- "select": [
- {
- "condition": "$VELOCITY_VERSION.compareTo($semver.release(3, 3)) >= 0",
- "value": 17
- },
- {
- "condition": "$VELOCITY_VERSION.compareTo($semver.release(3)) >= 0",
- "value": 11
- }
- ]
- }
- },
- {
- "name": "JDK",
- "type": "jdk",
- "order": 20,
- "default": "JAVA_VERSION"
- }
- ],
- "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": "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
- },
- {
- "template": "BuildConstants.java.ft",
- "destination": "src/main/templates/${MAIN_CLASS.packagePath}/BuildConstants.java",
- "condition": "$BUILD_SYSTEM=='Gradle'"
- }
- ],
- "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"
- }
- ]
- }