Skip to content

Commit 1856b5b

Browse files
authored
Merge pull request #4 from GeeLeonidas/1.19.2
1.19.2 + Fix settings.gradle.kts versioning by GeeLeonidas
2 parents 62ce399 + a4a5646 commit 1856b5b

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

gradle.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
kotlin.code.style=official
22
archives_base_name=fabric-example-mod
33
maven_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
1010
mod_version=1.0.0
1111

1212
org.gradle.jvmargs=-Xmx4000m

settings.gradle.kts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
rootProject.name = "fabric-example-mod-kotlin-with-kotlin-dsl"
22
pluginManagement {
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
}

src/main/resources/fabric.mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
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": "*"

0 commit comments

Comments
 (0)