diff --git a/README.md b/README.md
index 04aefa7e..b104e82f 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ For maven, the natives will
com.aayushatharva.brotli4j
brotli4j
- 1.14.0
+ 1.15.0
```
@@ -48,7 +48,7 @@ import org.gradle.nativeplatform.platform.internal.Architectures
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
import org.gradle.nativeplatform.operatingsystem.OperatingSystem
-val brotliVersion = "1.14.0"
+val brotliVersion = "1.15.0"
val operatingSystem: OperatingSystem = DefaultNativePlatform.getCurrentOperatingSystem()
repositories {
@@ -60,7 +60,11 @@ dependencies {
runtimeOnly(
"com.aayushatharva.brotli4j:native-" +
if (operatingSystem.isWindows) {
- "windows-x86_64"
+ if (DefaultNativePlatform.getCurrentArchitecture().isArm()) {
+ "windows-aarch64"
+ } else {
+ "windows-x86_64"
+ }
} else if (operatingSystem.isMacOsX) {
if (DefaultNativePlatform.getCurrentArchitecture().isArm()) {
"osx-aarch64"
@@ -78,6 +82,8 @@ dependencies {
"linux-s390x"
} else if (Architectures.RISCV_64.isAlias(DefaultNativePlatform.getCurrentArchitecture().name)) {
"linux-riscv64"
+ } else if (Architectures.PPC64LE.isAlias(DefaultNativePlatform.getCurrentArchitecture().name)) {
+ "linux-ppc64le"
} else {
throw IllegalStateException("Unsupported architecture: ${DefaultNativePlatform.getCurrentArchitecture().name}")
}
@@ -94,8 +100,9 @@ dependencies {
import org.gradle.nativeplatform.platform.internal.Architectures
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
-def brotliVersion = "1.14.0"
+def brotliVersion = "1.15.0"
def operatingSystem = DefaultNativePlatform.getCurrentOperatingSystem()
+def currentArchitecture = DefaultNativePlatform.getCurrentArchitecture()
repositories {
mavenCentral()
@@ -104,18 +111,23 @@ repositories {
dependencies {
implementation "com.aayushatharva.brotli4j:brotli4j:$brotliVersion"
runtimeOnly("""com.aayushatharva.brotli4j:native-${
- if (operatingSystem.isWindows()) "windows-x86_64"
+ if (operatingSystem.isWindows())
+ if (currentArchitecture.isX86_64()) "windows-x86_64"
+ else if (currentArchitecture.isArm()) "windows-aarch64"
+ else
+ throw new IllegalStateException("Unsupported architecture: ${currentArchitecture.getName()}");
else if (operatingSystem.isMacOsX())
- if (DefaultNativePlatform.getCurrentArchitecture().isArm()) "osx-aarch64"
+ if (currentArchitecture.isArm()) "osx-aarch64"
else "osx-x86_64"
else if (operatingSystem.isLinux())
- if (Architectures.ARM_V7.isAlias(DefaultNativePlatform.getCurrentArchitecture().getName())) "linux-armv7"
- else if (Architectures.AARCH64.isAlias(DefaultNativePlatform.getCurrentArchitecture().getName())) "linux-aarch64"
- else if (Architectures.X86_64.isAlias(DefaultNativePlatform.getCurrentArchitecture().getName())) "linux-x86_64"
- else if (Architectures.S390X.isAlias(DefaultNativePlatform.getCurrentArchitecture().getName())) "linux-s390x"
- else if (Architectures.RISCV_64.isAlias(DefaultNativePlatform.getCurrentArchitecture().getName())) "linux-riscv64"
+ if (currentArchitecture.isAARCH64()) "linux-aarch64"
+ else if (currentArchitecture.isX86_64()) "linux-x86_64"
+ else if (currentArchitecture.isARM_V7()) "linux-armv7"
+ else if (currentArchitecture.isPPC64LE()) "linux-ppc64le"
+ else if (currentArchitecture.isS390X()) "linux-s390x"
+ else if (currentArchitecture.isRISCV64()) "linux-riscv64"
else
- throw new IllegalStateException("Unsupported architecture: ${DefaultNativePlatform.getCurrentArchitecture().getName()}");
+ throw new IllegalStateException("Unsupported architecture: ${currentArchitecture.getName()}");
else
throw new IllegalStateException("Unsupported operating system: $operatingSystem");
}:$brotliVersion""")
diff --git a/all/pom.xml b/all/pom.xml
index 832229ae..361a07cf 100644
--- a/all/pom.xml
+++ b/all/pom.xml
@@ -23,7 +23,7 @@
com.aayushatharva.brotli4j
brotli4j-parent
- 1.14.0
+ 1.15.0
all
diff --git a/brotli4j/pom.xml b/brotli4j/pom.xml
index 6a1e063b..3c770377 100644
--- a/brotli4j/pom.xml
+++ b/brotli4j/pom.xml
@@ -22,7 +22,7 @@
brotli4j-parent
com.aayushatharva.brotli4j
- 1.14.0
+ 1.15.0
4.0.0
diff --git a/natives/linux-aarch64/pom.xml b/natives/linux-aarch64/pom.xml
index 056ac79b..05388f80 100644
--- a/natives/linux-aarch64/pom.xml
+++ b/natives/linux-aarch64/pom.xml
@@ -22,7 +22,7 @@
natives
com.aayushatharva.brotli4j
- 1.14.0
+ 1.15.0
4.0.0
diff --git a/natives/linux-armv7/pom.xml b/natives/linux-armv7/pom.xml
index d3accc51..29263d8e 100644
--- a/natives/linux-armv7/pom.xml
+++ b/natives/linux-armv7/pom.xml
@@ -22,7 +22,7 @@
natives
com.aayushatharva.brotli4j
- 1.14.0
+ 1.15.0
4.0.0
diff --git a/natives/linux-ppc64le/pom.xml b/natives/linux-ppc64le/pom.xml
index 55a3fe52..b7bb972e 100644
--- a/natives/linux-ppc64le/pom.xml
+++ b/natives/linux-ppc64le/pom.xml
@@ -22,7 +22,7 @@
natives
com.aayushatharva.brotli4j
- 1.14.0
+ 1.15.0
4.0.0
diff --git a/natives/linux-riscv64/pom.xml b/natives/linux-riscv64/pom.xml
index d6c7e85f..d4de1b46 100644
--- a/natives/linux-riscv64/pom.xml
+++ b/natives/linux-riscv64/pom.xml
@@ -22,7 +22,7 @@
natives
com.aayushatharva.brotli4j
- 1.14.0
+ 1.15.0
4.0.0
diff --git a/natives/linux-s390x/pom.xml b/natives/linux-s390x/pom.xml
index 35e169bd..5c87e431 100644
--- a/natives/linux-s390x/pom.xml
+++ b/natives/linux-s390x/pom.xml
@@ -22,7 +22,7 @@
natives
com.aayushatharva.brotli4j
- 1.14.0
+ 1.15.0
4.0.0
diff --git a/natives/linux-x86_64/pom.xml b/natives/linux-x86_64/pom.xml
index f6a3731d..ef3c1d7c 100644
--- a/natives/linux-x86_64/pom.xml
+++ b/natives/linux-x86_64/pom.xml
@@ -22,7 +22,7 @@
natives
com.aayushatharva.brotli4j
- 1.14.0
+ 1.15.0
4.0.0
diff --git a/natives/osx-aarch64/pom.xml b/natives/osx-aarch64/pom.xml
index 92d2c55f..88399794 100644
--- a/natives/osx-aarch64/pom.xml
+++ b/natives/osx-aarch64/pom.xml
@@ -22,7 +22,7 @@
natives
com.aayushatharva.brotli4j
- 1.14.0
+ 1.15.0
4.0.0
diff --git a/natives/osx-x86_64/pom.xml b/natives/osx-x86_64/pom.xml
index ede621f2..9b0f4cbe 100644
--- a/natives/osx-x86_64/pom.xml
+++ b/natives/osx-x86_64/pom.xml
@@ -22,7 +22,7 @@
natives
com.aayushatharva.brotli4j
- 1.14.0
+ 1.15.0
4.0.0
diff --git a/natives/pom.xml b/natives/pom.xml
index 8d34a14d..bbdfec3c 100644
--- a/natives/pom.xml
+++ b/natives/pom.xml
@@ -21,7 +21,7 @@
com.aayushatharva.brotli4j
brotli4j-parent
- 1.14.0
+ 1.15.0
4.0.0
diff --git a/natives/windows-aarch64/pom.xml b/natives/windows-aarch64/pom.xml
index 118f1bc0..3d7c3d4b 100644
--- a/natives/windows-aarch64/pom.xml
+++ b/natives/windows-aarch64/pom.xml
@@ -22,7 +22,7 @@
natives
com.aayushatharva.brotli4j
- 1.14.0
+ 1.15.0
4.0.0
diff --git a/natives/windows-x86_64/pom.xml b/natives/windows-x86_64/pom.xml
index 5cb2ce37..2368d9d0 100644
--- a/natives/windows-x86_64/pom.xml
+++ b/natives/windows-x86_64/pom.xml
@@ -22,7 +22,7 @@
natives
com.aayushatharva.brotli4j
- 1.14.0
+ 1.15.0
4.0.0
diff --git a/pom.xml b/pom.xml
index c615761e..8062a980 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
com.aayushatharva.brotli4j
brotli4j-parent
pom
- 1.14.0
+ 1.15.0
Brotli4j
Brotli4j provides Brotli compression and decompression for Java.
diff --git a/service/pom.xml b/service/pom.xml
index ffad752f..d4dad3bb 100644
--- a/service/pom.xml
+++ b/service/pom.xml
@@ -6,7 +6,7 @@
com.aayushatharva.brotli4j
brotli4j-parent
- 1.14.0
+ 1.15.0
service