Skip to content

Commit

Permalink
Only use agent in graal build
Browse files Browse the repository at this point in the history
  • Loading branch information
3arthqu4ke committed Jan 22, 2025
1 parent 61e4cd4 commit 539d21d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions headlessmc-launcher/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ shadowJar {
dependsOn shadowBugWorkaround
from shadowBugWorkaround

// TODO: fix this, since it breaks graalvm, because the resource is not available!!!
// ignore the forge-cli jar from processResources as it will get expanded
// that the runtime and lwjgl jars get expanded isnt problematic
processResources.exclude('forgecli*.jar')
processResources.exclude('ForgeCLI*.jar')
processResources.exclude('forge-cli.jar')
if (!hmc_graal_build) {
// TODO: fix this, since it breaks graalvm, because the resource is not available!!!
// ignore the forge-cli jar from processResources as it will get expanded
// that the runtime and lwjgl jars get expanded isnt problematic
processResources.exclude('forgecli*.jar')
processResources.exclude('ForgeCLI*.jar')
processResources.exclude('forge-cli.jar')
}

exclude("META-INF/maven/com.google.code.gson/**")
exclude("META-INF/versions/**")
Expand All @@ -120,7 +122,7 @@ shadowJar {
graalvmNative {
agent {
defaultMode = "standard"
enabled = true
enabled = rootProject.hmc_graal_build
}
binaries {
main {
Expand Down

0 comments on commit 539d21d

Please sign in to comment.