Skip to content

Commit

Permalink
Include the ServerMain class in the forgepatches jar
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenraven committed Feb 13, 2024
1 parent 19c857a commit ce5d0e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ tasks.createMcLauncherFiles {
}

val forgePatchesJar = tasks.register<Jar>("forgePatchesJar") {
dependsOn(tasks.compileJava)
group = taskGroup
description = "Packages the forgePatches jar"
isReproducibleFileOrder = true
Expand All @@ -106,6 +107,9 @@ val forgePatchesJar = tasks.register<Jar>("forgePatchesJar") {
exclude("module-info.class")
exclude("META-INF/versions/9/module-info.class")
exclude("log4j2.xml")
from(sourceSets.main.map { it.output.classesDirs }) {
include("me/eigenraven/lwjgl3ify/rfb/entry/ServerMain.class")
}
archiveClassifier.set("forgePatches")
manifest {
val libraryList = listOf(
Expand Down
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def addGtForTesting = Boolean.parseBoolean(project.getProperties().getOrDefault(
def addReikaModsForTesting = Boolean.parseBoolean(project.getProperties().getOrDefault("withReikaMods", "false").toString())

def asmVersion = '9.6'
def rfbVersion = '0.3.8'
def rfbVersion = '0.3.9'
// 100% binary compatible, 1 minor source compatibility issue (removed a throws IOException clause)
def gsonVersion = '2.10.1'

Expand Down

0 comments on commit ce5d0e2

Please sign in to comment.