@@ -6,8 +6,8 @@ plugins {
66 alias libs. plugins. minotaur
77}
88
9- version = " $p roject . baseVersion +$p roject . branch "
10- archivesBaseName = project. archivesName
9+ version = " $baseVersion +$branch "
10+ archivesBaseName = project. slug
1111
1212repositories {
1313 maven { url " https://server.bbkr.space/artifactory/libs-release" }
@@ -17,8 +17,10 @@ repositories {
1717dependencies {
1818 minecraft libs. mc
1919 mappings variantOf(libs. yarn) { classifier " v2" }
20+
2021 modImplementation libs. fl
2122 modImplementation libs. fapi
23+
2224 modImplementation libs. libgui
2325 modImplementation libs. fpapi
2426
@@ -32,20 +34,22 @@ processResources {
3234 modId : modId,
3335 modName : modName,
3436 modDescription : modDescription,
35- homepage : homepage ,
36- issues : issues,
37- sources : sources ,
37+ homepage : " https://modrinth.com/mod/ ${ slug } " ,
38+ issues : " https://github.com/ ${ user } / ${ slug } / issues" ,
39+ sources : " https://github.com/ ${ user } / ${ slug } " ,
3840 license : license,
3941 authors : authors. split(" , " ). join(" \" ,\n \" " ),
4042 contributors : contributors. split(" , " ). join(" \" ,\n \" " ),
41- mc : libs. versions. mc. get(),
43+ members : " ${ authors} . Contributions by ${ contributors} " ,
44+ mc : compatibleVersions. split(" , " )[0 ],
4245 fl : libs. versions. fl. get(),
4346 fapi : libs. versions. fapi. get(),
4447 libgui : libs. versions. libgui. get(),
4548 fpapi : libs. versions. fpapi. get()
4649 ]
4750 inputs. properties meta
48- filesMatching(" fabric.mod.json" ) { expand meta }
51+ filesMatching(" *.mod.json" ) { expand(meta) }
52+ filesMatching(" META-INF/*mods.toml" ) { expand(meta) }
4953}
5054
5155tasks. withType(JavaCompile ). configureEach {
@@ -55,7 +59,8 @@ tasks.withType(JavaCompile).configureEach {
5559
5660java {
5761 withSourcesJar()
58- sourceCompatibility = targetCompatibility = JavaVersion . VERSION_21
62+ sourceCompatibility = JavaVersion . VERSION_21
63+ targetCompatibility = JavaVersion . VERSION_21
5964}
6065
6166jar {
@@ -73,13 +78,16 @@ publishing {
7378}
7479
7580modrinth {
76- token = System . getenv(" MODRINTH_TOKEN" )
77- projectId = " scattered-shards"
81+ token = " $System . env . MODRINTH_TOKEN "
82+ projectId = slug
83+ versionNumber = project. version
84+ uploadFile = remapJar
85+ gameVersions = compatibleVersions. split(" , " ). toList()
86+ loaders = compatibleLoaders. split(" , " ). toList()
87+ changelog = " $System . env . CHANGELOG "
88+ syncBodyFrom = " <!--DO NOT EDIT MANUALLY: synced from gh readme-->\n " + rootProject. file(" README.md" ). text
7889 dependencies {
7990 required. version " fabric-api" , libs. versions. fapi. get()
8091 embedded. version " fabric-permissions-api" , libs. versions. fpapi. get()
8192 }
82- changelog = System . getenv(" CHANGELOG" )
83- syncBodyFrom = " <!--DO NOT EDIT MANUALLY: synced from gh readme-->\n " + rootProject. file(" README.md" ). text
84- uploadFile = remapJar
8593}
0 commit comments