Skip to content

Commit

Permalink
Standalone workflows, upgraded dependencies, updated link to Maven Ce…
Browse files Browse the repository at this point in the history
…ntral and to javadoc
  • Loading branch information
robertvazan committed Nov 13, 2023
1 parent 303ff14 commit b4dde6c
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 21 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,20 @@ on:
workflow_dispatch:
jobs:
build:
uses: robertvazan/rvscaffold/.github/workflows/java-build.yml@master
with:
java-version: 17
test-coverage: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 17
cache: maven
- name: Maven
run: |
# GPG must be skipped, because CI server does not have release GPG key.
# Failure on javadoc warnings is enabled only in CI builds,
# so that warnings specific to one JDK version do not break independent builds.
# Printing maven version (-V) helps diagnose CI-specific build behavior.
# JaCoCo phase is needed to create code coverage report that will be later uploaded to Codecov.
mvn install jacoco:report -Dgpg.skip=true -Dmaven.javadoc.failOnWarnings=true -B -V
- uses: codecov/codecov-action@v2
27 changes: 20 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@ name: release
on: workflow_dispatch
jobs:
release:
uses: robertvazan/rvscaffold/.github/workflows/java-release.yml@master
with:
java-version: 17
secrets:
server-password: ${{ secrets.MAVEN_SERVER_PASSWORD }}
signing-key: ${{ secrets.MAVEN_SIGNING_KEY }}
signing-password: ${{ secrets.MAVEN_SIGNING_PASSWORD }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 17
server-id: ossrh
server-username: MAVEN_SERVER_USERNAME
server-password: MAVEN_SERVER_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_SIGNING_KEY }}
gpg-passphrase: MAVEN_SIGNING_PASSWORD
cache: maven
- name: Maven
# Printing maven version (-V) helps diagnose GitHub-specific build behavior.
run: mvn -B -V deploy
env:
MAVEN_SERVER_USERNAME: robertvazan
MAVEN_SERVER_PASSWORD: ${{ secrets.MAVEN_SERVER_PASSWORD }}
MAVEN_SIGNING_PASSWORD: ${{ secrets.MAVEN_SIGNING_PASSWORD }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

# Reactive collections for Hookless

[![Maven Central](https://img.shields.io/maven-central/v/com.machinezoo.hookless/hookless-collections)](https://search.maven.org/artifact/com.machinezoo.hookless/hookless-collections)
[![Maven Central](https://img.shields.io/maven-central/v/com.machinezoo.hookless/hookless-collections)](https://central.sonatype.com/artifact/com.machinezoo.hookless/hookless-collections)
[![Build status](https://github.com/robertvazan/hookless-collections/workflows/build/badge.svg)](https://github.com/robertvazan/hookless-collections/actions/workflows/build.yml)
[![Test coverage](https://codecov.io/gh/robertvazan/hookless-collections/branch/master/graph/badge.svg)](https://codecov.io/gh/robertvazan/hookless-collections)

Reactive collections as implemented in [`ReactiveCollections`](https://hookless.machinezoo.com/javadocs/core/com.machinezoo.hookless/com/machinezoo/hookless/util/ReactiveCollections.html) class
Reactive collections as implemented in [`ReactiveCollections`](https://hookless.machinezoo.com/javadocs/collections/com.machinezoo.hookless.collections/com/machinezoo/hookless/collections/ReactiveCollections.html) class
are [reactive adapters](https://hookless.machinezoo.com/adapters) for Java collections.
Reactive collections wrap Java collections and turn them into reactive data source as long as all accesses are mediated by the wrapper.
Reactive collections will wake up dependent reactive computations whenever relevant write is made to the collection.
Expand Down
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
<dependency>
<groupId>com.machinezoo.hookless</groupId>
<artifactId>hookless</artifactId>
<version>0.16.0</version>
<version>0.16.1</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.8.2</version>
<version>5.10.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -72,16 +72,16 @@
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.11.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.2.2</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<version>0.8.11</version>
<executions>
<execution>
<id>prepare-agent</id>
Expand All @@ -101,7 +101,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.1</version>
<version>3.6.2</version>
<configuration>
<notimestamp>true</notimestamp>
<doclint>all,-missing</doclint>
Expand All @@ -125,7 +125,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>
Expand Down Expand Up @@ -156,7 +156,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<version>3.1.0</version>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
Expand Down

0 comments on commit b4dde6c

Please sign in to comment.