Skip to content

Commit 9dc57a1

Browse files
committed
Port to 1.21.1. Fix Forge version not working. Close #147
1 parent 515f242 commit 9dc57a1

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package com.blamejared
22

33
object Versions {
4-
const val MOD = "18.0.0"
4+
const val MOD = "19.0.0"
55
const val JAVA = "21"
6-
const val MINECRAFT = "1.21"
6+
const val MINECRAFT = "1.21.1"
77
const val FABRIC_LOADER = "0.15.11"
8-
const val FABRIC = "0.100.1+1.21"
9-
const val FORGE = "51.0.17"
10-
const val FORGE_LOADER = "[51,)"
11-
const val NEO_FORGE = "21.0.0-beta"
8+
const val FABRIC = "0.102.1+1.21.1"
9+
const val FORGE = "52.0.2"
10+
const val FORGE_LOADER = "[52,)"
11+
const val NEO_FORGE = "21.1.8"
1212
const val NEO_FORGE_LOADER= "[4,)"
1313
}

forge/build.gradle.kts

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ minecraft {
3030
}
3131
}
3232
}
33+
create("server") {
34+
taskName("Server")
35+
workingDirectory(project.file("run"))
36+
ideaModule("${rootProject.name}.${project.name}.main")
37+
args("-mixin.config=${Properties.MODID}.mixins.json")
38+
mods {
39+
create(Properties.MODID) {
40+
source(sourceSets.main.get())
41+
}
42+
}
43+
args("--nogui")
44+
}
3345
}
3446
}
3547

@@ -72,4 +84,20 @@ modrinth {
7284
uploadFile.set(tasks.jar.get())
7385
loaders.add("forge")
7486
}
75-
tasks.modrinth.get().dependsOn(tasks.jar)
87+
tasks.modrinth.get().dependsOn(tasks.jar)
88+
89+
tasks {
90+
named<Jar>("jar").configure {
91+
manifest {
92+
attributes["MixinConfigs"] = "${Properties.MODID}.mixins.json"
93+
}
94+
}
95+
}
96+
97+
publishing {
98+
publications {
99+
named("mavenJava", MavenPublication::class) {
100+
fg.component(this)
101+
}
102+
}
103+
}

0 commit comments

Comments
 (0)