Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version and publish package #20

Merged
merged 4 commits into from
Dec 10, 2024
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
22 changes: 21 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
cache: maven

- name: Build with Maven
run: mvn clean package
run: mvn clean package -DskipTests

- name: Run tests
run: mvn verify
Expand All @@ -33,3 +33,23 @@ jobs:
echo "Coverage below 25%: $COVERAGE%"
exit 1
fi

publish:
needs: build
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'corretto'
cache: maven

- name: Publish Module
run: mvn deploy -pl core -am -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 8 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ to an Ethereum node.

[![Gitter](https://badges.gitter.im/eventeum/community.svg)](https://gitter.im/eventeum/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

**Master**

[![CircleCI](https://circleci.com/gh/ConsenSys/eventeum/tree/master.svg?style=svg)](https://circleci.com/gh/ConsenSys/eventeum/tree/master)

**Development**

[![CircleCI](https://circleci.com/gh/ConsenSys/eventeum/tree/development.svg?style=svg)](https://circleci.com/gh/ConsenSys/eventeum/tree/development)

## Features

* Dynamically Configurable - Eventeum exposes a REST api so that smart contract events can be dynamically subscribed /
Expand All @@ -34,8 +26,8 @@ to an Ethereum node.

* Kafka
* HTTP Post
* [RabbitMQ](https://www.rabbitmq.com/)
* [Pulsar](https://pulsar.apache.org)
* RabbitMQ
* Pulsar

For RabbitMQ, you can configure the following extra values

Expand All @@ -44,19 +36,13 @@ For RabbitMQ, you can configure the following extra values
* rabbitmq.routingKey.blockEvents
* rabbitmq.routingKey.transactionEvents

## Eventeum Tutorials

- [Listening to Ethereum Events](https://kauri.io/article/90dc8d911f1c43008c7d0dfa20bde298/listening-to-ethereum-events-with-eventeum)
- [Listening for Ethereum Transactions](https://kauri.io/article/3e31587c96a74d24b5cdd17952d983e9/v1/listening-for-ethereum-transactions-with-eventeum)
- [Using Eventeum to Build a Java Smart Contract Data Cache](https://kauri.io/article/fe81ee9612eb4e5a9ab72790ef24283d/using-eventeum-to-build-a-java-smart-contract-data-cache)

## Getting Started

Follow the instructions below in order to run Eventeum on your local machine for development and testing purposes.

### Prerequisites

* Java 8
* Java 21
* Maven
* Docker (optional)

Expand Down Expand Up @@ -268,7 +254,7 @@ Dynamically sized arrays are also supported by suffixing the type with `[]`, e.g
| parameterIndex | Number | yes | | The parameter index to use within the correlation strategy. |

- **Success Response:**
- **Code:** 200
- **Code:** 200
**Content:**

```json
Expand Down Expand Up @@ -480,7 +466,7 @@ field `transactionIdentifierValue`
- **Body:** `N/A`

- **Success Response:**
- **Code:** 200
- **Code:** 200
**Content:** `N/A`

## Broadcast Messages Format
Expand Down Expand Up @@ -712,7 +698,7 @@ The implemented REST service should have a pageable endpoint which accepts a req
- **Body:** `N/A`

- **Success Response:**
- **Code:** 200
- **Code:** 200
**Content:**

```json
Expand Down Expand Up @@ -751,7 +737,7 @@ Eventeum can be embedded into an existing Spring Application via an annotation.
1. Add the Eventeum Artifactory repository into your `pom.xml` file:

```xml

<repositories>
<repository>
<id>eventeum-artifactory</id>
Expand All @@ -763,7 +749,7 @@ Eventeum can be embedded into an existing Spring Application via an annotation.
2. Add the eventeum-core dependency to your `pom.xml` file:

```xml

<dependency>
<groupId>io.eventeum</groupId>
<artifactId>eventeum-core</artifactId>
Expand Down
173 changes: 89 additions & 84 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,95 +13,27 @@
~ limitations under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>eventeum-core</artifactId>
<version>${revision}</version>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
</configuration>
<executions>
<!-- enable flattening -->
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless.version}</version>
<executions>
<execution>
<goals>
<goal>apply</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
<configuration>
<java>
<googleJavaFormat>
<style>GOOGLE</style>
</googleJavaFormat>
</java>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<parent>
<groupId>io.eventeum</groupId>
<artifactId>eventeum</artifactId>
<version>${revision}</version>
<version>2.0.0</version>
</parent>

<properties>
<java.version>21</java.version>
<maven.compiler.release>21</maven.compiler.release>
</properties>
<artifactId>eventeum-core</artifactId>
<version>${eventeum.core.version}</version>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<!--suppress UnresolvedMavenProperty -->
<url>https://maven.pkg.github.com/${GITHUB_REPOSITORY}</url>
</repository>
</distributionManagement>

<dependencies>
<dependency>
Expand Down Expand Up @@ -173,7 +105,7 @@
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<version> ${micrometer.version}</version>
<version>${micrometer.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -236,6 +168,79 @@
<artifactId>jakarta.xml.bind-api</artifactId>
<version>4.0.2</version>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
</configuration>
<executions>
<!-- enable flattening -->
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless.version}</version>
<executions>
<execution>
<goals>
<goal>apply</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
<configuration>
<java>
<googleJavaFormat>
<style>GOOGLE</style>
</googleJavaFormat>
</java>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
9 changes: 5 additions & 4 deletions coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.eventeum</groupId>
<artifactId>eventeum</artifactId>
<version>${revision}</version>
<version>2.0.0</version>
</parent>

<artifactId>coverage</artifactId>
Expand All @@ -20,17 +21,17 @@
<dependency>
<groupId>io.eventeum</groupId>
<artifactId>eventeum-core</artifactId>
<version>${revision}</version>
<version>${eventeum.core.version}</version>
</dependency>
<dependency>
<groupId>io.eventeum</groupId>
<artifactId>eventeum-privacy-plugin</artifactId>
<version>${revision}</version>
<version>${parent.version}</version>
</dependency>
<dependency>
<groupId>io.eventeum</groupId>
<artifactId>eventeum-server</artifactId>
<version>${revision}</version>
<version>${parent.version}</version>
</dependency>
</dependencies>

Expand Down
15 changes: 8 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@
~ limitations under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>io.eventeum</groupId>
<artifactId>eventeum</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.1</version>
</parent>

<groupId>io.eventeum</groupId>
<artifactId>eventeum</artifactId>
<version>2.0.0</version>
<packaging>pom</packaging>

<modules>
<module>core</module>
<module>server</module>
Expand All @@ -35,7 +36,7 @@
</modules>

<properties>
<revision>1.0.35-SNAPSHOT</revision>
<eventeum.core.version>2.0.0</eventeum.core.version>
<java.version>21</java.version>
<web3j.version>4.12.0</web3j.version>
<springcloud.version>4.1.2</springcloud.version>
Expand Down
Loading
Loading