Skip to content

Commit

Permalink
slim okhttp to reduce jar size
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Jun 9, 2024
1 parent ccef944 commit cb09bb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ dependencies {
implementation("us.ajg0702.commands.platforms.bukkit:bukkit:1.0.0")
implementation("us.ajg0702.commands.api:api:1.0.0")

implementation("com.squareup.okhttp3:okhttp:4.11.0")

compileOnly("net.luckperms:api:5.4")

implementation("io.papermc:paperlib:1.0.7")
Expand All @@ -55,6 +53,7 @@ dependencies {

slim("com.zaxxer:HikariCP:3.4.5")
slim("com.h2database:h2:2.1.214")
slim("com.squareup.okhttp3:okhttp:4.11.0")
//implementation("io.prometheus", "simpleclient", "0.9.0")
}

Expand All @@ -77,6 +76,9 @@ tasks.withType<ProcessResources> {
tasks.slimJar {
relocate("org.h2", "us.ajg0702.leaderboards.libs.h2")
relocate("com.zaxxer.hikari", "us.ajg0702.leaderboards.libs.hikari")
relocate("com.squareup", "us.ajg0702.leaderboards.libs")
relocate("okhttp3", "us.ajg0702.leaderboards.libs.okhttp3")
relocate("okio", "us.ajg0702.leaderboards.libs.okio")
}

tasks.shadowJar {
Expand Down

0 comments on commit cb09bb8

Please sign in to comment.