Skip to content

Commit

Permalink
Some tidyup and stop relocating brotli for now
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Jun 26, 2024
1 parent 70a8d6a commit a486ffd
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "de.bluecolored.bluemap.brotli"
version = "1.0"
version = "1.1"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(16))
Expand All @@ -17,23 +17,25 @@ repositories {
}

dependencies {
compileOnly ( "de.bluecolored.bluemap:BlueMapCore:5.0" )

implementation ( group = "com.aayushatharva.brotli4j", name = "brotli4j", version = "1.16.0" )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-windows-x86_64", version = "1.16.0" )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-windows-aarch64", version = "1.16.0" )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-linux-x86_64", version = "1.16.0" )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-linux-aarch64", version = "1.16.0" )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-linux-armv7", version = "1.16.0" )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-linux-ppc64le", version = "1.16.0" )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-linux-riscv64", version = "1.16.0" )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-linux-s390x", version = "1.16.0" )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-osx-x86_64", version = "1.16.0" )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-osx-aarch64", version = "1.16.0" )
compileOnly ( "de.bluecolored.bluemap:BlueMapCore:5.2" )

val brotli4jVersion = "1.16.0"
implementation ( group = "com.aayushatharva.brotli4j", name = "brotli4j", version = brotli4jVersion )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-windows-x86_64", version = brotli4jVersion )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-windows-aarch64", version = brotli4jVersion )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-linux-x86_64", version = brotli4jVersion )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-linux-aarch64", version = brotli4jVersion )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-linux-armv7", version = brotli4jVersion )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-linux-ppc64le", version = brotli4jVersion )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-linux-riscv64", version = brotli4jVersion )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-linux-s390x", version = brotli4jVersion )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-osx-x86_64", version = brotli4jVersion )
runtimeOnly ( group = "com.aayushatharva.brotli4j", name = "native-osx-aarch64", version = brotli4jVersion )
}

tasks.shadowJar {
relocate( "com.aayushatharva.brotli4j", "de.bluecolored.shadow.brotli4j" )
// apparently relocating breaks it from working on some systems, so we don't relocate until someone finds out why
//relocate( "com.aayushatharva.brotli4j", "de.bluecolored.shadow.brotli4j" )

doLast {
destinationDirectory.file(archiveFileName).get().asFile
Expand Down

0 comments on commit a486ffd

Please sign in to comment.