Skip to content

Commit

Permalink
Merge pull request #26 from Consensys/update-to-24.6.0
Browse files Browse the repository at this point in the history
Release 0.3.1, bump to besu 24.6.0
  • Loading branch information
garyschulte authored Jun 18, 2024
2 parents 22b9661 + 708f27e commit 46f6800
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 20 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: 'adopt'

- name: Cache Gradle dependencies
Expand Down Expand Up @@ -54,10 +54,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: 'adopt'

- name: Cache Gradle dependencies
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## version 0.3.1
Bump besu dependency to 24.6.0
- minor trielog factory interface change
- bump java to 21
- bump gradle to 8.7.0
- add hyperledger artifactory repo for besu maven deps

## version 0.3.0
this release version uses the final build of 23.10.4-SNAPSHOT

Expand Down
18 changes: 13 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ import groovy.transform.Memoized
buildscript {
repositories {
mavenLocal()
maven {
url "https://hyperledger.jfrog.io/artifactory/besu-maven/"
content { includeGroupByRegex('org\\.hyperledger\\.besu\\..*')}
}
mavenCentral()
maven {
url "https://artifacts.consensys.net/public/maven/maven/"
Expand All @@ -30,7 +34,7 @@ buildscript {
}

plugins {
id 'com.diffplug.spotless' version '6.16.0'
id 'com.diffplug.spotless' version '6.21.0'
id 'com.github.ben-manes.versions' version '0.46.0'
id 'com.github.hierynomus.license' version '0.16.1'
id 'io.spring.dependency-management' version '1.1.0'
Expand All @@ -53,17 +57,21 @@ group = 'net.consensys.shomei.besu.plugin'
//version = '0.1.0'
version = project.hasProperty('releaseVersion') ? project.getProperty('releaseVersion') : 'snapshot'

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21

defaultTasks 'build', 'checkLicenses', 'javadoc', 'plugin'

repositories {
mavenLocal()
maven {
url "https://hyperledger.jfrog.io/artifactory/besu-maven/"
content { includeGroupByRegex('org\\.hyperledger\\.besu\\..*')}
}
mavenCentral()
maven {
url "https://artifacts.consensys.net/public/maven/maven/"
content { includeGroupByRegex('tech\\.pegasys($|\\..*)') }
content { includeGroupByRegex('tech\\.pegasys($|\\..*)')}
}
maven {
url "https://dl.cloudsmith.io/public/libp2p/jvm-libp2p/maven/"
Expand All @@ -88,7 +96,7 @@ spotless {
exclude '**/build/**'
}
removeUnusedImports()
googleJavaFormat('1.15.0')
googleJavaFormat('1.17.0')
importOrder 'net.consensys', 'java', ''
trimTrailingWhitespace()
endWithNewline()
Expand Down
5 changes: 3 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
releaseVersion=0.3.0
besuVersion=23.10.4-SNAPSHOT
releaseVersion=0.3.1
besuVersion=24.6.0

6 changes: 1 addition & 5 deletions gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ dependencyManagement {
dependency "org.hyperledger.besu:plugin-api:${besuVersion}"
dependency "org.hyperledger.besu:besu-datatypes:${besuVersion}"
dependency "org.hyperledger.besu.internal:rlp:${besuVersion}"


// Logging dependencies
dependencySet(group: 'org.apache.logging.log4j', version: '2.20.0') {
entry 'log4j-api'
Expand Down Expand Up @@ -82,7 +80,5 @@ dependencyManagement {
dependency 'org.assertj:assertj-core:3.24.2'

dependency 'com.google.guava:guava:31.1-jre'


}
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed May 03 13:03:35 PDT 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package net.consensys.shomei.trielog;

import java.util.List;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicReference;

import org.hyperledger.besu.plugin.services.TrieLogService;
Expand Down Expand Up @@ -48,8 +49,8 @@ public List<TrieLogEvent.TrieLogObserver> getObservers() {
}

@Override
public TrieLogFactory getTrieLogFactory() {
return ZkTrieLogFactory.INSTANCE;
public Optional<TrieLogFactory> getTrieLogFactory() {
return Optional.of(ZkTrieLogFactory.INSTANCE);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void testGetSingleTrieLogIsPresent(VertxTestContext testContext) {
var res = response.getString("result");
assertThat(res)
.isEqualTo(
Bytes.wrap(trieLogService.getTrieLogFactory().serialize(mockLayer))
Bytes.wrap(trieLogService.getTrieLogFactory().get().serialize(mockLayer))
.toHexString());
});
}
Expand Down

0 comments on commit 46f6800

Please sign in to comment.