File tree Expand file tree Collapse file tree 2 files changed +35
-7
lines changed
buildSrc/src/main/kotlin/com/blamejared Expand file tree Collapse file tree 2 files changed +35
-7
lines changed Original file line number Diff line number Diff line change 11package com.blamejared
22
33object 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}
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments