Skip to content

Commit

Permalink
Add back previously deleted profiles #84 (#86)
Browse files Browse the repository at this point in the history
* Add back previously deleted profiles (#84)

* Refactor again to build with a separate service module

* Preserve Backward compatibility

---------

Co-authored-by: Tobias Hotz <ichttt@users.noreply.github.com>
  • Loading branch information
hyperxpro and ichttt committed Feb 19, 2023
1 parent 95868ca commit 31e2799
Show file tree
Hide file tree
Showing 38 changed files with 349 additions and 313 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
pull_request:

workflow_dispatch:
inputs:
name:
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
with:
name: Linux-x86_64-Build-JDK8
path: /home/runner/work/Brotli4j/

Linux-x86_64-Build-JDK11:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
export JAVA_HOME="/jdk"
chmod +x ./mvnw
./mvnw -B -ntp clean package
- name: Upload the build
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
dockerRunArgs: |
--platform linux/arm64
--volume "/home/runner/.m2/repository/:/root/.m2/repository"
# Install dependencies
install: |
apt-get update
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:
export JAVA_HOME="/jdk"
chmod +x ./mvnw
./mvnw -B -ntp clean package
- name: Upload the build
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -294,7 +294,7 @@ jobs:
dockerRunArgs: |
--platform linux/arm/v7
--volume "/home/runner/.m2/repository/:/root/.m2/repository"
# Install dependencies
install: |
apt-get update
Expand Down Expand Up @@ -327,7 +327,7 @@ jobs:
with:
name: Windows-x86_64-Build-JDK8
path: D:\a\Brotli4j\


Windows-x86_64-Build-JDK11:
runs-on: windows-latest
Expand All @@ -343,7 +343,7 @@ jobs:
uses: ilammy/msvc-dev-cmd@v1.12.0
- name: Build with Maven
run: mvn -B -ntp clean package --file pom.xml


Windows-x86_64-Build-JDK17:
runs-on: windows-latest
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Brotli4j provides Brotli compression and decompression for Java.

## Supported Platforms:

| Module | Architecture | Tested On |
| :--- | :----: | ---: |
| Windows (Windows Server 2022) | x64 | JDK 1.8, JDK 11, JDK 17 |
| Linux (CentOS 6) | x64 | JDK 1.8, JDK 11, JDK 17 |
| Linux (Ubuntu 18.04) | Aarch64 | JDK 1.8, JDK 11, JDK 17 |
| Linux (Ubuntu 18.04) | ARMv7 | JDK 1.8, JDK 11 |
| macOS (Catalina) | x64 | JDK 1.8, JDK 11, JDK 17 |
| macOS (Catalina) | Aarch64 | JDK 1.8, JDK 11, JDK 17 |
| Module | Architecture | Tested On |
|:------------------------------|:------------:|------------------------:|
| Windows (Windows Server 2022) | x64 | JDK 1.8, JDK 11, JDK 17 |
| Linux (CentOS 6) | x64 | JDK 1.8, JDK 11, JDK 17 |
| Linux (Ubuntu 18.04) | Aarch64 | JDK 1.8, JDK 11, JDK 17 |
| Linux (Ubuntu 18.04) | ARMv7 | JDK 1.8, JDK 11 |
| macOS (Catalina) | x64 | JDK 1.8, JDK 11, JDK 17 |
| macOS (Catalina) | Aarch64 | JDK 1.8, JDK 11, JDK 17 |

#### *Install [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170) before running this library on Windows

Expand All @@ -33,7 +33,8 @@ For maven, the natives will
```

### Gradle
For gradle, we have to write some logic to import native automatically.

For gradle, we have to write some logic to import native automatically.
Of course, you can add native(s) as dependency manually also.

#### Kotlin DSL
Expand Down
42 changes: 21 additions & 21 deletions brotli/tools/brotli.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,43 +56,43 @@ OPTIONS
-------

* `-#`:
compression level (0-9); bigger values cause denser, but slower compression
compression level (0-9); bigger values cause denser, but slower compression
* `-c`, `--stdout`:
write on standard output
write on standard output
* `-d`, `--decompress`:
decompress mode
decompress mode
* `-f`, `--force`:
force output file overwrite
force output file overwrite
* `-h`, `--help`:
display this help and exit
display this help and exit
* `-j`, `--rm`:
remove source file(s); `gzip (1)`-like behaviour
remove source file(s); `gzip (1)`-like behaviour
* `-k`, `--keep`:
keep source file(s); `zstd (1)`-like behaviour
keep source file(s); `zstd (1)`-like behaviour
* `-n`, `--no-copy-stat`:
do not copy source file(s) attributes
do not copy source file(s) attributes
* `-o FILE`, `--output=FILE`
output file; valid only if there is a single input entry
output file; valid only if there is a single input entry
* `-q NUM`, `--quality=NUM`:
compression level (0-11); bigger values cause denser, but slower compression
compression level (0-11); bigger values cause denser, but slower compression
* `-t`, `--test`:
test file integrity mode
test file integrity mode
* `-v`, `--verbose`:
increase output verbosity
increase output verbosity
* `-w NUM`, `--lgwin=NUM`:
set LZ77 window size (0, 10-24) (default: 24); window size is
`(2**NUM - 16)`; 0 lets compressor decide over the optimal value; bigger
windows size improve density; decoder might require up to window size
memory to operate
set LZ77 window size (0, 10-24) (default: 24); window size is
`(2**NUM - 16)`; 0 lets compressor decide over the optimal value; bigger
windows size improve density; decoder might require up to window size
memory to operate
* `-D FILE`, `--dictionary=FILE`:
use FILE as raw (LZ77) dictionary; same dictionary MUST be used both for
compression and decompression
use FILE as raw (LZ77) dictionary; same dictionary MUST be used both for
compression and decompression
* `-S SUF`, `--suffix=SUF`:
output file suffix (default: `.br`)
output file suffix (default: `.br`)
* `-V`, `--version`:
display version and exit
display version and exit
* `-Z`, `--best`:
use best compression level (default); same as "`-q 11`"
use best compression level (default); same as "`-q 11`"

SEE ALSO
--------
Expand Down
207 changes: 0 additions & 207 deletions brotli4j-tests/pom.xml

This file was deleted.

Loading

0 comments on commit 31e2799

Please sign in to comment.