Skip to content

Commit da8a46a

Browse files
committed
Add readme and version 1.0
1 parent 24fa3a7 commit da8a46a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# BlueMap Brotli
2+
A native addon for bluemap, adding brotli-compression support.
3+
4+
## Usage
5+
- download the [bluemap-brotil.jar](https://github.com/BlueMap-Minecraft/BlueMapBrotli/releases) that fits to your BlueMap version
6+
- place the jar file into the `addons` folder next to your bluemap config files
7+
- change the `compression` in your storage-config (`storages/file.conf` or `storages/sql.conf`) to `"bluemap-brotli:brotli"`
8+
- reload bluemap

build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group = "de.bluecolored.bluemap.brotli"
7-
version = "0.1"
7+
version = "1.0"
88

99
java {
1010
toolchain.languageVersion.set(JavaLanguageVersion.of(16))
@@ -28,6 +28,11 @@ dependencies {
2828

2929
tasks.shadowJar {
3030
relocate( "com.aayushatharva.brotli4j", "de.bluecolored.shadow.brotli4j" )
31+
32+
doLast {
33+
destinationDirectory.file(archiveFileName).get().asFile
34+
.copyTo(projectDir.resolve("build/release/bluemap-brotli-$version.jar"))
35+
}
3136
}
3237

3338
tasks.withType(JavaCompile::class).configureEach {

0 commit comments

Comments
 (0)