@@ -6,8 +6,8 @@ plugins {
6
6
alias libs. plugins. minotaur
7
7
}
8
8
9
- version = " $p roject . baseVersion +$p roject . branch "
10
- archivesBaseName = project. archivesName
9
+ version = " $baseVersion +$branch "
10
+ archivesBaseName = project. slug
11
11
12
12
repositories {
13
13
maven { url " https://server.bbkr.space/artifactory/libs-release" }
@@ -17,8 +17,10 @@ repositories {
17
17
dependencies {
18
18
minecraft libs. mc
19
19
mappings variantOf(libs. yarn) { classifier " v2" }
20
+
20
21
modImplementation libs. fl
21
22
modImplementation libs. fapi
23
+
22
24
modImplementation libs. libgui
23
25
modImplementation libs. fpapi
24
26
@@ -32,20 +34,22 @@ processResources {
32
34
modId : modId,
33
35
modName : modName,
34
36
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 } " ,
38
40
license : license,
39
41
authors : authors. split(" , " ). join(" \" ,\n \" " ),
40
42
contributors : contributors. split(" , " ). join(" \" ,\n \" " ),
41
- mc : libs. versions. mc. get(),
43
+ members : " ${ authors} . Contributions by ${ contributors} " ,
44
+ mc : compatibleVersions. split(" , " )[0 ],
42
45
fl : libs. versions. fl. get(),
43
46
fapi : libs. versions. fapi. get(),
44
47
libgui : libs. versions. libgui. get(),
45
48
fpapi : libs. versions. fpapi. get()
46
49
]
47
50
inputs. properties meta
48
- filesMatching(" fabric.mod.json" ) { expand meta }
51
+ filesMatching(" *.mod.json" ) { expand(meta) }
52
+ filesMatching(" META-INF/*mods.toml" ) { expand(meta) }
49
53
}
50
54
51
55
tasks. withType(JavaCompile ). configureEach {
@@ -55,7 +59,8 @@ tasks.withType(JavaCompile).configureEach {
55
59
56
60
java {
57
61
withSourcesJar()
58
- sourceCompatibility = targetCompatibility = JavaVersion . VERSION_21
62
+ sourceCompatibility = JavaVersion . VERSION_21
63
+ targetCompatibility = JavaVersion . VERSION_21
59
64
}
60
65
61
66
jar {
@@ -73,13 +78,16 @@ publishing {
73
78
}
74
79
75
80
modrinth {
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
78
89
dependencies {
79
90
required. version " fabric-api" , libs. versions. fapi. get()
80
91
embedded. version " fabric-permissions-api" , libs. versions. fpapi. get()
81
92
}
82
- changelog = System . getenv(" CHANGELOG" )
83
- syncBodyFrom = " <!--DO NOT EDIT MANUALLY: synced from gh readme-->\n " + rootProject. file(" README.md" ). text
84
- uploadFile = remapJar
85
93
}
0 commit comments