File tree Expand file tree Collapse file tree 5 files changed +30
-8
lines changed
Expand file tree Collapse file tree 5 files changed +30
-8
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,14 @@ tasks.withType(JavaCompile).configureEach {
5959}
6060
6161java {
62- // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
63- // if it is present.
64- // If you remove this line, sources will not be generated.
6562 withSourcesJar()
6663
67- sourceCompatibility = JavaVersion . VERSION_21
68- targetCompatibility = JavaVersion . VERSION_21
64+ def javaVersion = stonecutter. eval( minecraft_version, " >=1.20.5" )
65+ ? JavaVersion . VERSION_21
66+ : JavaVersion . VERSION_17
67+
68+ sourceCompatibility = javaVersion
69+ targetCompatibility = javaVersion
6970}
7071
7172jar {
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ org.gradle.parallel=true
44
55# Fabric Properties
66# check these on https://fabricmc.net/develop
7- minecraft_version =1.21.4
8- yarn_mappings =1.21.4+build.1
7+ minecraft_version =[VERSIONED]
8+ yarn_mappings =[VERSIONED]
99loader_version =0.16.9
1010
1111# Mod Properties
@@ -14,5 +14,5 @@ maven_group=dev.trigam.template
1414archives_base_name =template
1515
1616# Dependencies
17- fabric_version =0.110.5+1.21.4
17+ fabric_version =[VERSIONED]
1818midnightlib_version =1.6.5-fabric
Original file line number Diff line number Diff line change @@ -7,4 +7,15 @@ pluginManagement {
77 mavenCentral()
88 gradlePluginPortal()
99 }
10+ }
11+
12+ plugins {
13+ id " dev.kikugie.stonecutter" version " 0.5"
14+ }
15+
16+ stonecutter {
17+ create( rootProject ) {
18+ versions " 1.21.4"
19+ vcsVersion = " 1.21.4"
20+ }
1021}
Original file line number Diff line number Diff line change 1+ plugins. apply " dev.kikugie.stonecutter"
2+ stonecutter. active " 1.21.4" /* [SC] DO NOT EDIT */
3+
4+ stonecutter. registerChiseled tasks. register(" chiseledBuild" , stonecutter. chiseled) {
5+ setGroup " project"
6+ ofTask " build"
7+ }
Original file line number Diff line number Diff line change 1+ minecraft_version =1.21.4
2+ yarn_mappings =1.21.4+build.1
3+ fabric_version =0.110.5+1.21.4
You can’t perform that action at this time.
0 commit comments