Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import org.gradle.nativeplatform.platform.internal.Architectures
import org.gradle.internal.os.OperatingSystem

def DEFAULT_VERSION = '1.0.0'
def DEFAULT_GROUP = 'io.github.tronprotocol'

Expand All @@ -22,6 +25,10 @@ apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'

def arch = System.getProperty("os.arch").toLowerCase(Locale.ROOT)
def isArm64 = Architectures.AARCH64.isAlias(arch)
def isMac = OperatingSystem.current().isMacOsX()

ext {
bouncycastleVersion = '1.84'
junitJupiterVersion = '5.4.2'
Expand All @@ -30,6 +37,10 @@ ext {
// grpc-netty and netty are compatibility-coupled: each grpc-java release is
// tested against a specific netty line, so bump these two together
grpcVersion = '1.81.0'
// https://github.com/grpc/grpc-java/issues/7690
// https://github.com/grpc/grpc-java/pull/12319, Add support for macOS aarch64 with universal binary
// https://github.com/grpc/grpc-java/pull/11371 , 1.64.x is not supported CentOS 7.
protocGenVersion = isArm64 || isMac ? '1.81.0' : '1.60.0'
nettyVersion = '4.1.135.Final'
vertxVersion = '4.5.27'
}
Expand Down
2 changes: 0 additions & 2 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ plugins {
description 'Trident-Java gRPC core classes'

def protobufVersion = '3.25.8'
// grpcVersion lives in the root ext block, next to the coupled nettyVersion
def protocGenVersion = '1.60.0' // https://github.com/grpc/grpc-java/pull/11371 , 1.64.x is not supported CentOS 7.

dependencies {
implementation "com.google.guava:guava:$googleGuavaVersion"
Expand Down
14 changes: 14 additions & 0 deletions gradle/verification-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,20 @@
<sha256 value="e82d7256d7230aac0fc8276f57c96e3b98ad6fcda8a074fe7d4935ee21cb7008" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="io.grpc" name="protoc-gen-grpc-java" version="1.81.0">
<artifact name="protoc-gen-grpc-java-1.81.0-linux-aarch_64.exe">
<sha256 value="0613bddb0963d0bdccf07e021ae0783516648cdf733ee14cfc4d8d0249fa775a" origin="Generated by Gradle"/>
</artifact>
<artifact name="protoc-gen-grpc-java-1.81.0-osx-aarch_64.exe">
<sha256 value="737e7d52f11af89f39295e8a14e5ccb94582626c81e559137e62df8fc27cd6a4" origin="Generated by Gradle"/>
</artifact>
<artifact name="protoc-gen-grpc-java-1.81.0-osx-x86_64.exe">
<sha256 value="737e7d52f11af89f39295e8a14e5ccb94582626c81e559137e62df8fc27cd6a4" origin="Generated by Gradle"/>
</artifact>
<artifact name="protoc-gen-grpc-java-1.81.0.pom">
<sha256 value="554926fe2bc2cb52a4043d98b06d9b01481f6483590d54ee1c90a3f3489eddb7" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="io.netty" name="netty-bom" version="4.1.133.Final">
<artifact name="netty-bom-4.1.133.Final.pom">
<sha256 value="6d73813455db749311ae8ccb6629d213885e7d70675cc3a12deb5c3310129935" origin="Generated by Gradle"/>
Expand Down