Skip to content

Commit

Permalink
fix shading
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Nov 9, 2024
1 parent 87619eb commit 4d8313e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ dependencies {

modImplementation urlFile("https://github.com/nothub/baritone-mirror/raw/refs/heads/main/baritone-api-fabric-${project.minecraft_version}.jar", "baritone", "${project.minecraft_version}")

implementation "io.prometheus:prometheus-metrics-core:${project.prometheus_lib_version}"
implementation "io.prometheus:prometheus-metrics-instrumentation-jvm:${project.prometheus_lib_version}"
implementation "io.prometheus:prometheus-metrics-exporter-httpserver:${project.prometheus_lib_version}"
shadow "io.prometheus:prometheus-metrics-core:${project.prometheus_lib_version}"
shadow "io.prometheus:prometheus-metrics-instrumentation-jvm:${project.prometheus_lib_version}"
shadow "io.prometheus:prometheus-metrics-exporter-httpserver:${project.prometheus_lib_version}"

testImplementation "org.junit.jupiter:junit-jupiter-api:${project.junit_version}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${project.junit_version}"
Expand Down Expand Up @@ -72,6 +72,11 @@ shadowJar {
archiveVersion.set('')
}

tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
enableRelocation true
relocationPrefix "lol.hub.headlessbot.shady"
}

remapJar {
dependsOn shadowJar
inputFile.set(shadowJar.archiveFile)
Expand Down

0 comments on commit 4d8313e

Please sign in to comment.