Skip to content

Commit

Permalink
Simplify AddOpens by including them in the manifest file
Browse files Browse the repository at this point in the history
  • Loading branch information
spacebuilder2020 committed May 6, 2024
1 parent d8ee738 commit 469723c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import org.apache.tools.ant.filters.ReplaceTokens
import java.time.OffsetDateTime
import java.time.ZoneOffset
import java.time.format.DateTimeFormatter
import kotlin.streams.toList

plugins {
id("com.gtnewhorizons.gtnhconvention")
Expand Down Expand Up @@ -143,6 +144,7 @@ val forgePatchesJar = tasks.register<Jar>("forgePatchesJar") {
attributes(
mapOf(
"Class-Path" to libraryList.joinToString(" "),
"Add-Opens" to addOpens.stream().map{ it.split("=")[0]}.toList().joinToString(" "),
"Main-Class" to "me.eigenraven.lwjgl3ify.rfb.entry.ServerMain"
)
)
Expand Down

0 comments on commit 469723c

Please sign in to comment.