File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed
Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 11kotlin.code.style =official
22archives_base_name =fabric-example-mod
33maven_group =net.fabricmc
4- loom_version =0.11 -SNAPSHOT
5- minecraft_version =1.18 .2
6- yarn_mappings =1.18 .2+build.2
7- loader_version =0.13.3
8- fabric_kotlin_version =1.7.1 +kotlin.1.6 .10
9- fabric_api_version =0.48 .0+1.18 .2
4+ loom_version =1.0 -SNAPSHOT
5+ minecraft_version =1.19 .2
6+ yarn_mappings =1.19 .2+build.8
7+ loader_version =0.14.9
8+ fabric_kotlin_version =1.8.3 +kotlin.1.7 .10
9+ fabric_api_version =0.60 .0+1.19 .2
1010mod_version =1.0.0
1111
1212org.gradle.jvmargs =-Xmx4000m
Original file line number Diff line number Diff line change 11rootProject.name = " fabric-example-mod-kotlin-with-kotlin-dsl"
22pluginManagement {
33 repositories {
4- jcenter()
54 maven(" https://maven.fabricmc.net/" ) {
65 name = " Fabric"
76 }
7+ mavenCentral()
88 gradlePluginPortal()
99 }
1010
11+ val loom_version: String by settings
12+ val fabric_kotlin_version: String by settings
1113 plugins {
12- id(" fabric-loom" ) version " 0.11-SNAPSHOT"
13- id(" org.jetbrains.kotlin.jvm" ) version " 1.6.10"
14+ id(" fabric-loom" ) version loom_version
15+ id(" org.jetbrains.kotlin.jvm" ) version
16+ fabric_kotlin_version
17+ .split(" +kotlin." )[1 ] // Grabs the sentence after `+kotlin.`
18+ .split(" +" )[0 ] // Ensures sentences like `+build.1` are ignored
1419 }
15-
1620}
Original file line number Diff line number Diff line change 3232 "depends" : {
3333 "fabricloader" : " >=0.13.3" ,
3434 "fabric" : " *" ,
35- "minecraft" : " 1.18 .x" ,
35+ "minecraft" : " 1.19 .x" ,
3636 "java" : " >=17" ,
37- "fabric-language-kotlin" : " >=1.7.1 +kotlin.1.6 .10"
37+ "fabric-language-kotlin" : " >=1.8.3 +kotlin.1.7 .10"
3838 },
3939 "suggests" : {
4040 "another-mod" : " *"
You can’t perform that action at this time.
0 commit comments