Skip to content

Commit 8368d45

Browse files
Upload uber jar to modrinth
1 parent 00a948c commit 8368d45

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

common/build.gradle

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,4 @@ dependencies {
1111
// Netty
1212
api "io.netty:netty-codec-http:${project.netty_version}"
1313
}
14-
15-
processResources {
16-
final Map properties = Map<String, String>.of(
17-
"modVersion", project.mod_version,
18-
"supportedMinecraftVersions", project.supported_minecraft_versions
19-
)
20-
21-
inputs.properties(properties)
22-
23-
filesMatching("fabric.mod.json") {
24-
expand(properties)
25-
}
26-
27-
exclude ".cache/**"
28-
}
14+
tasks.build.dependsOn(shadowJar)

paper/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ dependencies {
3535
// Common
3636
common project(path: ":common", configuration: "shadow")
3737
}
38+
tasks.build.dependsOn(shadowJar)
3839

3940
processResources {
4041
final Map properties = Map<String, String>.of(
@@ -55,5 +56,5 @@ tasks.runServer {
5556

5657
modrinth {
5758
loaders = ["paper"]
58-
uploadFile = jar
59+
uploadFile = shadowJar
5960
}

0 commit comments

Comments
 (0)