Skip to content

Commit

Permalink
bump to java21 and gradle 8.8, bump version to 0.9.0-SNAPSHOT, use gn…
Browse files Browse the repository at this point in the history
…ark-crypto PR 510 until gnark-crypto is released

Signed-off-by: garyschulte <garyschulte@gmail.com>
  • Loading branch information
garyschulte committed Jun 24, 2024
1 parent c101a3d commit 8b0825d
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 30 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

# 0.9.0-SNAPSHOT
* implement EIP-196 and EIP-2537 using gnark-crypto, bump to java 21 [#168](https://github.com/hyperledger/besu-native/pull/168)

# 0.8.5
* ipa-multipoint : add verkle proof verification (#169)

Expand Down
4 changes: 2 additions & 2 deletions altbn128/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ jar {

task sourcesJar(type: Jar, dependsOn: classes) {
archiveBaseName = 'besu-native-altbn128'
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveBaseName = 'besu-native-altbn128'
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
4 changes: 2 additions & 2 deletions arithmetic/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ test {

task sourcesJar(type: Jar, dependsOn: classes) {
archiveBaseName = 'besu-native-arithmetic'
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveBaseName = 'besu-native-arithmetic'
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
4 changes: 2 additions & 2 deletions blake2bf/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ jar {

task sourcesJar(type: Jar, dependsOn: classes) {
archiveBaseName = 'besu-native-blake2bf'
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveBaseName = 'besu-native-blake2bf'
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
4 changes: 2 additions & 2 deletions bls12-381/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ jar {

task sourcesJar(type: Jar, dependsOn: classes) {
archiveBaseName = 'besu-native-bls12-381'
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveBaseName = 'besu-native-bls12-381'
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
allprojects {
apply plugin: 'java-library'

sourceCompatibility = 17
targetCompatibility = 17
sourceCompatibility = 21
targetCompatibility = 21

repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions gnark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ jar {

task sourcesJar(type: Jar, dependsOn: classes) {
archiveBaseName = 'besu-native-gnark'
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveBaseName = 'besu-native-gnark'
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
6 changes: 3 additions & 3 deletions gnark/gnark-jni/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ module github.com/hyperledger/besu-native

go 1.18

require github.com/consensys/gnark-crypto v0.12.0
require github.com/consensys/gnark-crypto v0.12.2-0.20240612222159-0823e43febdc

require (
github.com/bits-and-blooms/bitset v1.7.0 // indirect
github.com/consensys/bavard v0.1.13 // indirect
github.com/mmcloughlin/addchain v0.4.0 // indirect
golang.org/x/crypto v0.10.0 // indirect
golang.org/x/sys v0.9.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
rsc.io/tmplfunc v0.0.3 // indirect
)
12 changes: 6 additions & 6 deletions gnark/gnark-jni/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/bits-and-blooms/bitset v1.7.0 h1:YjAGVd3XmtK9ktAbX8Zg2g2PwLIMjGREZJHl
github.com/bits-and-blooms/bitset v1.7.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA=
github.com/consensys/bavard v0.1.13 h1:oLhMLOFGTLdlda/kma4VOJazblc7IM5y5QPd2A/YjhQ=
github.com/consensys/bavard v0.1.13/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI=
github.com/consensys/gnark-crypto v0.12.0 h1:1OnSpOykNkUIBIBJKdhwy2p0JlW5o+Az02ICzZmvvdg=
github.com/consensys/gnark-crypto v0.12.0/go.mod h1:v2Gy7L/4ZRosZ7Ivs+9SfUDr0f5UlG+EM5t7MPHiLuY=
github.com/consensys/gnark-crypto v0.12.2-0.20240612222159-0823e43febdc h1:v7/inFJJyYOibH9xbw59sb3Tw4D6sa16sLUOEI36RZQ=
github.com/consensys/gnark-crypto v0.12.2-0.20240612222159-0823e43febdc/go.mod h1:wKqwsieaKPThcFkHe0d0zMsbHEUWFmZcG7KBCse210o=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk=
github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c=
Expand All @@ -12,10 +12,10 @@ github.com/mmcloughlin/addchain v0.4.0/go.mod h1:A86O+tHqZLMNO4w6ZZ4FlVQEadcoqky
github.com/mmcloughlin/profile v0.1.1/go.mod h1:IhHD7q1ooxgwTgjxQYkACGA77oFTDdFVejUS1/tS/qU=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
golang.org/x/crypto v0.10.0 h1:LKqV2xt9+kDzSTfOhx4FrkEBcMrAgHSYgzywV9zcGmM=
golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I=
golang.org/x/sys v0.9.0 h1:KS/R3tvhPqvJvwcKfnBHJwwthS11LRhmM5D59eEXa0s=
golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
rsc.io/tmplfunc v0.0.3 h1:53XFQh69AfOa8Tw0Jm7t+GV7KZhOi6jzsCzTtKbMvzU=
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.8.6-SNAPSHOT
version=0.9.0-SNAPSHOT
5 changes: 4 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4 changes: 2 additions & 2 deletions ipa-multipoint/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ jar {

task sourcesJar(type: Jar, dependsOn: classes) {
archiveBaseName = 'besu-native-ipa-multipoint'
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveBaseName = 'besu-native-ipa-multipoint'
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
4 changes: 2 additions & 2 deletions secp256k1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ jar {

task sourcesJar(type: Jar, dependsOn: classes) {
archiveBaseName = 'besu-native-secp256k1'
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveBaseName = 'besu-native-secp256k1'
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
14 changes: 11 additions & 3 deletions secp256r1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ dependencies {
testImplementation 'org.assertj:assertj-core:3.22.0'
}

// Ensure that the compileTestJava task depends on the macArmLibCopy task
tasks.named('compileTestJava').configure {
dependsOn tasks.named('macArmLibCopy')
dependsOn tasks.named('macLibCopy')
dependsOn tasks.named('linuxLibCopy')
dependsOn tasks.named('linuxArm64LibCopy')
}

task macArmLibCopy(type: Copy) {
from 'besu-native-ec/release/darwin-aarch64/libbesu_native_ec.dylib'
from 'besu-native-ec/release/darwin-aarch64/libbesu_native_ec_crypto.dylib'
Expand Down Expand Up @@ -72,13 +80,13 @@ jar {

task sourcesJar(type: Jar, dependsOn: classes) {
archiveBaseName = 'besu-native-secp256r1'
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveBaseName = 'besu-native-secp256r1'
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down Expand Up @@ -136,4 +144,4 @@ artifactory {

test {
systemProperty "jna.library.path", "$project.projectDir/besu-native-ec/release"
}
}

0 comments on commit 8b0825d

Please sign in to comment.