Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
charphi committed Feb 8, 2024
2 parents 49d152d + 39de747 commit e301133
Show file tree
Hide file tree
Showing 17 changed files with 358 additions and 47 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Check links in documentation

on:
push:
paths:
- '.github/workflows/check-links.yml'
- 'lychee.toml'
- '**/*.md'
schedule:
# Run on the first of each month at 9:00 AM
- cron: "0 9 1 * *"
workflow_dispatch:

concurrency:
group: "${{ github.workflow }}-${{ github.head_ref }}"
cancel-in-progress: true

jobs:
lychee:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-

- name: Check links
id: lychee
uses: lycheeverse/lychee-action@v1.9.3
with:
fail: true
args: --max-concurrency 1 --cache --no-progress --exclude-all-private './**/*.md'
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +50,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +64,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
with:
ref: 'gh-pages'

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: /root/.jbang
key: $-jbang-$
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hugo-geekdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
commit-message: Bump ${{ env.DEP_PROP }} to ${{ steps.lr.outputs.release }}
title: Bump ${{ env.DEP_PROP }} to ${{ steps.lr.outputs.release }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/java-ea-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ 20 ]
java: [ 21 ]
os: [ ubuntu-latest ]

name: JDK${{ matrix.java }} on ${{ matrix.os }}
Expand All @@ -25,7 +25,7 @@ jobs:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/java8-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
strategy:
fail-fast: false
matrix:
# java: [ 8, 17 ]
# java: [ 8, 21 ]
# os: [ ubuntu-latest, macOS-latest, windows-latest ]
java: [ 17 ]
java: [ 21 ]
os: [ ubuntu-latest ]

name: JDK${{ matrix.java }} on ${{ matrix.os }}
Expand All @@ -24,7 +24,7 @@ jobs:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
Expand All @@ -36,7 +36,10 @@ jobs:
- name: Build and (headless) test with Maven
uses: smithki/xvfb-action@v1.1.2
with:
run: mvn -U -B -ntp package
run: mvn -U -B -ntp install

- name: Ensure reproducible builds with Maven
run: mvn -U -B -ntp clean verify artifact:compare -DskipTests

auto-merge-job:
needs: build-and-test-job
Expand All @@ -58,7 +61,7 @@ jobs:
if: startsWith(github.repository, 'nbbrd/') && startsWith(github.ref, 'refs/heads/develop')
strategy:
matrix:
java: [ 17 ]
java: [ 21 ]
os: [ ubuntu-latest ]

name: Snapshot on develop
Expand All @@ -72,7 +75,7 @@ jobs:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
Expand All @@ -96,7 +99,7 @@ jobs:

- name: Upload JReleaser output
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: assets-snapshot-log
path: |
Expand All @@ -108,7 +111,7 @@ jobs:
if: startsWith(github.repository, 'nbbrd/') && startsWith(github.ref, 'refs/tags/v')
strategy:
matrix:
java: [ 17 ]
java: [ 21 ]
os: [ ubuntu-latest ]

name: Release on tag
Expand All @@ -122,7 +125,7 @@ jobs:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
Expand All @@ -148,7 +151,7 @@ jobs:

- name: Upload JReleaser output
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: assets-release-log
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jbang-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: sdmx-dl version
steps:
- name: Setup cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.jbang
key: ${{ runner.os }}-jbang-${{ hashFiles('*.java') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qodana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.2.6
uses: JetBrains/qodana-action@v2023.3.1
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
1 change: 1 addition & 0 deletions lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude_path = ["sandbox-cli/src/test/resources/Main.md"]
14 changes: 14 additions & 0 deletions modernizer.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<modernizer>
<!-- The following code doesn't work -->
<!-- <violation>-->
<!-- <name>org/checkerframework/checker/nullness/qual/NonNull</name>-->
<!-- <version>8</version>-->
<!-- <comment>Prefer lombok.NonNull</comment>-->
<!-- </violation>-->
<!-- <violation>-->
<!-- <name>lombok/experimental/UtilityClass</name>-->
<!-- <version>8</version>-->
<!-- <comment>Do not use since it might trigger compilation errors in some cases</comment>-->
<!-- </violation>-->
</modernizer>
71 changes: 59 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.nbbrd.sandbox</groupId>
<artifactId>sandbox-parent</artifactId>
<version>2.3.3</version>
<version>2.3.4</version>
<packaging>pom</packaging>

<name>sandbox</name>
Expand Down Expand Up @@ -35,19 +35,23 @@
<url>http://github.com/nbbrd/sandbox/tree/master</url>
</scm>

<properties>
<project.build.outputTimestamp>2024-02-08T15:10:11Z</project.build.outputTimestamp>
</properties>

<build>
<pluginManagement>
<plugins>
<!-- Enforce reproducible builds -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.3.1</version>
<version>3.3.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<version>3.12.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -77,28 +81,35 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
<version>3.2.5</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit-platform</artifactId>
<version>3.2.5</version>
</dependency>
</dependencies>
</plugin>
<!-- Other plugins -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.6.0</version>
<version>3.6.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.0</version>
<version>3.5.1</version>
</plugin>
<plugin>
<groupId>com.github.nbbrd.heylogs</groupId>
<artifactId>heylogs-maven-plugin</artifactId>
<version>0.6.0</version>
<version>0.7.2</version>
</plugin>
<plugin>
<groupId>de.thetaphi</groupId>
<artifactId>forbiddenapis</artifactId>
<version>3.5.1</version>
<version>3.6</version>
</plugin>
</plugins>
</pluginManagement>
Expand Down Expand Up @@ -313,7 +324,7 @@
<dependency>
<groupId>org.kordamp.maven</groupId>
<artifactId>pomchecker-enforcer-rules</artifactId>
<version>1.9.0</version>
<version>1.10.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.mojo</groupId>
Expand Down Expand Up @@ -356,6 +367,42 @@
</build>
</profile>

<!-- Enforce modern API -->
<profile>
<id>enforce-modern-api</id>
<activation>
<property>
<name>!skipEnforceModernAPI</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-plugin</artifactId>
<version>2.7.0</version>
<configuration>
<javaVersion>1.8</javaVersion>
</configuration>
<executions>
<execution>
<id>modernizer</id>
<phase>verify</phase>
<goals>
<goal>modernizer</goal>
</goals>
<configuration>
<violationsFiles>
<!-- <violationsFile>modernizer.xml</violationsFile>-->
</violationsFiles>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<!-- Gitflow automation -->
<profile>
<id>gitflow-automation</id>
Expand All @@ -369,7 +416,7 @@
<plugin>
<groupId>com.amashchenko.maven.plugin</groupId>
<artifactId>gitflow-maven-plugin</artifactId>
<version>1.20.0</version>
<version>1.21.0</version>
<configuration>
<gitFlowConfig>
<versionTagPrefix>v</versionTagPrefix>
Expand All @@ -393,7 +440,7 @@
<plugin>
<groupId>com.github.siom79.japicmp</groupId>
<artifactId>japicmp-maven-plugin</artifactId>
<version>0.18.0</version>
<version>0.18.3</version>
<configuration>
<parameter>
<breakBuildBasedOnSemanticVersioning>true</breakBuildBasedOnSemanticVersioning>
Expand Down Expand Up @@ -441,7 +488,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.0</version>
<version>3.6.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down
Loading

0 comments on commit e301133

Please sign in to comment.