-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
53 lines (44 loc) · 2.24 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
plugins {
java
id ("com.github.johnrengelman.shadow") version "7.1.2"
}
group = "de.bluecolored.bluemap.brotli"
version = "1.1"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(16))
withSourcesJar()
}
repositories {
mavenCentral()
maven ( "https://repo.bluecolored.de/releases" )
}
dependencies {
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 {
// 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
.copyTo(projectDir.resolve("build/release/bluemap-brotli-$version.jar"))
}
}
tasks.withType(JavaCompile::class).configureEach {
options.encoding = "utf-8"
}
tasks.withType(AbstractArchiveTask::class).configureEach {
isReproducibleFileOrder = true
isPreserveFileTimestamps = false
}