Skip to content

Commit ca63d55

Browse files
authored
Prepare for v1.15.0 release (#128)
1 parent 8f178b8 commit ca63d55

File tree

16 files changed

+39
-27
lines changed

16 files changed

+39
-27
lines changed

README.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ For maven, the natives will
3232
<dependency>
3333
<groupId>com.aayushatharva.brotli4j</groupId>
3434
<artifactId>brotli4j</artifactId>
35-
<version>1.14.0</version>
35+
<version>1.15.0</version>
3636
</dependency>
3737
```
3838

@@ -48,7 +48,7 @@ import org.gradle.nativeplatform.platform.internal.Architectures
4848
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
4949
import org.gradle.nativeplatform.operatingsystem.OperatingSystem
5050

51-
val brotliVersion = "1.14.0"
51+
val brotliVersion = "1.15.0"
5252
val operatingSystem: OperatingSystem = DefaultNativePlatform.getCurrentOperatingSystem()
5353

5454
repositories {
@@ -60,7 +60,11 @@ dependencies {
6060
runtimeOnly(
6161
"com.aayushatharva.brotli4j:native-" +
6262
if (operatingSystem.isWindows) {
63-
"windows-x86_64"
63+
if (DefaultNativePlatform.getCurrentArchitecture().isArm()) {
64+
"windows-aarch64"
65+
} else {
66+
"windows-x86_64"
67+
}
6468
} else if (operatingSystem.isMacOsX) {
6569
if (DefaultNativePlatform.getCurrentArchitecture().isArm()) {
6670
"osx-aarch64"
@@ -78,6 +82,8 @@ dependencies {
7882
"linux-s390x"
7983
} else if (Architectures.RISCV_64.isAlias(DefaultNativePlatform.getCurrentArchitecture().name)) {
8084
"linux-riscv64"
85+
} else if (Architectures.PPC64LE.isAlias(DefaultNativePlatform.getCurrentArchitecture().name)) {
86+
"linux-ppc64le"
8187
} else {
8288
throw IllegalStateException("Unsupported architecture: ${DefaultNativePlatform.getCurrentArchitecture().name}")
8389
}
@@ -94,8 +100,9 @@ dependencies {
94100
import org.gradle.nativeplatform.platform.internal.Architectures
95101
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
96102
97-
def brotliVersion = "1.14.0"
103+
def brotliVersion = "1.15.0"
98104
def operatingSystem = DefaultNativePlatform.getCurrentOperatingSystem()
105+
def currentArchitecture = DefaultNativePlatform.getCurrentArchitecture()
99106
100107
repositories {
101108
mavenCentral()
@@ -104,18 +111,23 @@ repositories {
104111
dependencies {
105112
implementation "com.aayushatharva.brotli4j:brotli4j:$brotliVersion"
106113
runtimeOnly("""com.aayushatharva.brotli4j:native-${
107-
if (operatingSystem.isWindows()) "windows-x86_64"
114+
if (operatingSystem.isWindows())
115+
if (currentArchitecture.isX86_64()) "windows-x86_64"
116+
else if (currentArchitecture.isArm()) "windows-aarch64"
117+
else
118+
throw new IllegalStateException("Unsupported architecture: ${currentArchitecture.getName()}");
108119
else if (operatingSystem.isMacOsX())
109-
if (DefaultNativePlatform.getCurrentArchitecture().isArm()) "osx-aarch64"
120+
if (currentArchitecture.isArm()) "osx-aarch64"
110121
else "osx-x86_64"
111122
else if (operatingSystem.isLinux())
112-
if (Architectures.ARM_V7.isAlias(DefaultNativePlatform.getCurrentArchitecture().getName())) "linux-armv7"
113-
else if (Architectures.AARCH64.isAlias(DefaultNativePlatform.getCurrentArchitecture().getName())) "linux-aarch64"
114-
else if (Architectures.X86_64.isAlias(DefaultNativePlatform.getCurrentArchitecture().getName())) "linux-x86_64"
115-
else if (Architectures.S390X.isAlias(DefaultNativePlatform.getCurrentArchitecture().getName())) "linux-s390x"
116-
else if (Architectures.RISCV_64.isAlias(DefaultNativePlatform.getCurrentArchitecture().getName())) "linux-riscv64"
123+
if (currentArchitecture.isAARCH64()) "linux-aarch64"
124+
else if (currentArchitecture.isX86_64()) "linux-x86_64"
125+
else if (currentArchitecture.isARM_V7()) "linux-armv7"
126+
else if (currentArchitecture.isPPC64LE()) "linux-ppc64le"
127+
else if (currentArchitecture.isS390X()) "linux-s390x"
128+
else if (currentArchitecture.isRISCV64()) "linux-riscv64"
117129
else
118-
throw new IllegalStateException("Unsupported architecture: ${DefaultNativePlatform.getCurrentArchitecture().getName()}");
130+
throw new IllegalStateException("Unsupported architecture: ${currentArchitecture.getName()}");
119131
else
120132
throw new IllegalStateException("Unsupported operating system: $operatingSystem");
121133
}:$brotliVersion""")

all/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<groupId>com.aayushatharva.brotli4j</groupId>
2525
<artifactId>brotli4j-parent</artifactId>
26-
<version>1.14.0</version>
26+
<version>1.15.0</version>
2727
</parent>
2828

2929
<artifactId>all</artifactId>

brotli4j/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>brotli4j-parent</artifactId>
2424
<groupId>com.aayushatharva.brotli4j</groupId>
25-
<version>1.14.0</version>
25+
<version>1.15.0</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

natives/linux-aarch64/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>natives</artifactId>
2424
<groupId>com.aayushatharva.brotli4j</groupId>
25-
<version>1.14.0</version>
25+
<version>1.15.0</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

natives/linux-armv7/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>natives</artifactId>
2424
<groupId>com.aayushatharva.brotli4j</groupId>
25-
<version>1.14.0</version>
25+
<version>1.15.0</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

natives/linux-ppc64le/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>natives</artifactId>
2424
<groupId>com.aayushatharva.brotli4j</groupId>
25-
<version>1.14.0</version>
25+
<version>1.15.0</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

natives/linux-riscv64/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>natives</artifactId>
2424
<groupId>com.aayushatharva.brotli4j</groupId>
25-
<version>1.14.0</version>
25+
<version>1.15.0</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

natives/linux-s390x/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>natives</artifactId>
2424
<groupId>com.aayushatharva.brotli4j</groupId>
25-
<version>1.14.0</version>
25+
<version>1.15.0</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

natives/linux-x86_64/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>natives</artifactId>
2424
<groupId>com.aayushatharva.brotli4j</groupId>
25-
<version>1.14.0</version>
25+
<version>1.15.0</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

natives/osx-aarch64/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>natives</artifactId>
2424
<groupId>com.aayushatharva.brotli4j</groupId>
25-
<version>1.14.0</version>
25+
<version>1.15.0</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

0 commit comments

Comments
 (0)