1+ import org.gradle.nativeplatform.platform.internal.Architectures
12plugins {
23 id " org.sonarqube" version " 2.6"
34}
@@ -20,6 +21,11 @@ configurations.getByName('checkstyleConfig') {
2021 transitive = false
2122}
2223
24+ static def isArm64 () {
25+ def arch = System . getProperty(" os.arch" ). toLowerCase()
26+ return Architectures . AARCH64 . isAlias(arch)
27+ }
28+
2329dependencies {
2430 // local libraries
2531 implementation fileTree(dir : ' libs' , include : ' *.jar' )
@@ -29,11 +35,12 @@ dependencies {
2935 implementation group : ' com.typesafe' , name : ' config' , version : ' 1.3.2'
3036 implementation group : ' me.tongfei' , name : ' progressbar' , version : ' 0.9.3'
3137 implementation group : ' org.bouncycastle' , name : ' bcprov-jdk15on' , version : ' 1.69'
32- implementation ' com.halibobor :leveldbjni-all:1.18.3 '
33- implementation ' com.halibobor :leveldb:1.18.3 '
38+ implementation ' io.github.tronprotocol :leveldbjni-all:1.18.2 '
39+ implementation ' io.github.tronprotocol :leveldb:1.18.2 '
3440 implementation project(" :protocol" )
3541 implementation project(" :platform" ), {
3642 exclude(group : ' org.fusesource.leveldbjni' , module : ' leveldbjni-all' )
43+ exclude(group : ' io.github.tronprotocol' , module : ' zksnark-java-sdk' )
3744 }
3845}
3946
@@ -78,6 +85,18 @@ test {
7885 destinationFile = file(" ../framework/build/jacoco/jacocoTest1.exec" )
7986 classDumpDir = file(" $buildDir /jacoco/classpathdumps" )
8087 }
88+
89+ if (isArm64()) {
90+
91+ exclude(' org.tron.plugins.leveldb.*' )
92+ filter {
93+ excludeTestsMatching ' *.*leveldb*'
94+ excludeTestsMatching ' *.*Leveldb*'
95+ excludeTestsMatching ' *.*LevelDB*'
96+ excludeTestsMatching ' *.*LevelDb*'
97+ excludeTestsMatching ' *.*Archive*'
98+ }
99+ }
81100}
82101
83102jacocoTestReport {
0 commit comments