-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminestom.mcdev.template.json
92 lines (92 loc) · 1.84 KB
/
minestom.mcdev.template.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"version": 1,
"group": "plugin",
"properties": [
{
"name": "BUILD_COORDS",
"type": "build_system_coordinates",
"order": 10
},
{
"name": "LANGUAGE",
"type": "string",
"options": ["Java", "Kotlin"]
},
{
"name": "DSL",
"type": "string",
"options": ["Groovy", "Kotlin"]
},
{
"name": "MINESTOM_VERSION",
"type": "string"
},
{
"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": "MAIN_CLASS",
"type": "class_fqn",
"derives": {
"parents": ["BUILD_COORDS", "PROJECT_NAME"],
"method": "suggestClassName"
}
}
],
"files": [
{
"template": "gitignore.ft",
"destination": ".gitignore",
"condition": "$USE_GIT"
},
{
"template": "build.gradle.ft",
"destination": "build.gradle",
"condition": "$DSL == 'Groovy'"
},
{
"template": "settings.gradle.ft",
"destination": "settings.gradle",
"condition": "$DSL == 'Groovy'"
},
{
"template": "build.gradle.kts.ft",
"destination": "build.gradle.kts",
"condition": "$DSL == 'Kotlin'"
},
{
"template": "settings.gradle.kts.ft",
"destination": "settings.gradle.kts",
"condition": "$DSL == 'Kotlin'"
},
{
"template": "Main.java.ft",
"destination": "src/main/java/${MAIN_CLASS.path}.java",
"condition": "$LANGUAGE == 'Java'",
"openInEditor": true
},
{
"template": "Main.kt.ft",
"destination": "src/main/kotlin/${MAIN_CLASS.path}.kt",
"condition": "$LANGUAGE == 'Kotlin'",
"openInEditor": true
}
],
"finalizers": [
{
"type": "import_gradle_project"
},
{
"type": "git_add_all",
"condition": "$USE_GIT"
}
]
}