Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
charphi committed Oct 4, 2024
2 parents 3e1cd19 + 97891d5 commit ba09bee
Show file tree
Hide file tree
Showing 18 changed files with 228 additions and 70 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ updates:
interval: "weekly"
day: "saturday"
open-pull-requests-limit: 10
ignore:
- dependency-name: "eu.europa.ec.joinup.sat:*"
- dependency-name: "org.netbeans.api:*"
- package-ecosystem: "github-actions"
target-branch: "develop"
directory: "/"
Expand Down
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.10.0
with:
fail: true
args: --max-concurrency 1 --cache --no-progress --exclude-all-private './**/*.md'
33 changes: 33 additions & 0 deletions .github/workflows/heylogs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Heylogs

on: [ push ]

jobs:
badge-job:
if: startsWith(github.repository, 'nbbrd/') && startsWith(github.ref, 'refs/heads/develop')
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
cache: 'maven'

- name: Scan changelog
run: mvn -B -ntp -U com.github.nbbrd.heylogs:heylogs-maven-plugin::scan -Dheylogs.output.file=scan.json -Dheylogs.format.id=json

- name: Create badges endpoint json
run: |
mkdir heylogs
jq '{schemaVersion: 1, label: "unreleased changes", message: "#\(.[0].summary.unreleasedChanges)", color: "E05735", logoColor: "white", namedLogo: "keepachangelog"}' scan.json > heylogs/unreleased-changes.json
- name: Deploy badges endpoint json
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: badges
publish_dir: ./heylogs
8 changes: 4 additions & 4 deletions .github/workflows/java-ea-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ 20 ]
os: [ ubuntu-latest ]
java: [ 21 ]
os: [ ubuntu-latest, macos-latest ]

name: JDK${{ matrix.java }} on ${{ matrix.os }}
runs-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 All @@ -34,4 +34,4 @@ 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 verify
34 changes: 21 additions & 13 deletions .github/workflows/java-maven.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Java8+ with Maven

on: [ push, pull_request ]
on: [ push, pull_request, workflow_dispatch ]

jobs:
build-and-test-job:
if: github.event_name == 'pull_request' || startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/tags/v')
strategy:
fail-fast: false
matrix:
java: [ 17 ]
os: [ ubuntu-latest, macOS-latest, windows-latest ]
java: [ 21 ]
os: [ ubuntu-latest, macos-13, windows-latest ]

name: JDK${{ matrix.java }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -22,19 +22,23 @@ jobs:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Pre-download dependencies with Maven
run: mvn -U -B -ntp dependency:go-offline
uses: nick-fields/retry@v3
with:
command: mvn -U -B -ntp dependency:go-offline
max_attempts: 3
timeout_minutes: 5

- 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 verify

auto-merge-job:
needs: build-and-test-job
Expand All @@ -48,7 +52,11 @@ jobs:

steps:
- name: Merge PR
run: gh pr merge --auto --rebase "$PR_URL"
uses: nick-fields/retry@v3
with:
command: gh pr merge --auto --rebase "$PR_URL"
max_attempts: 3
timeout_minutes: 5
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -58,7 +66,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 +80,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 +104,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 +116,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 +130,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 +156,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
20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [3.2.0] - 2024-10-04

This is a feature release of SDMX extensions for JDemetra+ v3.
[JDemetra+ v3.1.1 or later](https://github.com/jdemetra/jdplus-main) version is required to run it.

### Added

- Add logging of events

### Fixed

- Fix sources file property in configuration

### Changed

- Bump sdmx-dl from 3.0.0-beta.12 to [3.0.0-beta.13](https://github.com/nbbrd/sdmx-dl/releases/tag/v3.0.0-beta.13)

## [3.1.0] - 2023-10-16

This is a feature release of SDMX extensions for JDemetra+ v3.
Expand All @@ -30,6 +47,7 @@ This is a feature release of SDMX extensions for JDemetra+ v3.
This is the **initial release** of SDMX extensions for JDemetra+ v3.
[JDemetra+ v3.0.2 or later](https://github.com/jdemetra/jdplus-main) version is required to run it.

[Unreleased]: https://github.com/nbbrd/jdplus-sdmx/compare/v3.1.0...HEAD
[Unreleased]: https://github.com/nbbrd/jdplus-sdmx/compare/v3.2.0...HEAD
[3.2.0]: https://github.com/nbbrd/jdplus-sdmx/compare/v3.1.0...v3.2.0
[3.1.0]: https://github.com/nbbrd/jdplus-sdmx/compare/v3.0.0...v3.1.0
[3.0.0]: https://github.com/nbbrd/jdplus-sdmx/releases/tag/v3.0.0
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SDMX extensions for JDemetra+ v3

[![Download](https://img.shields.io/github/release/nbbrd/jdplus-sdmx.svg)](https://github.com/nbbrd/jdplus-sdmx/releases/latest)
[![Changes](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fnbbrd%2Fjdplus-sdmx%2Fbadges%2Funreleased-changes.json)](https://github.com/nbbrd/jdplus-sdmx/blob/develop/CHANGELOG.md)

This plugin provides time series from [SDMX](https://sdmx.org/) to [JDemetra+ v3](https://github.com/jdemetra/jdplus-main) by querying web services and parsing local files.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.github.nbbrd.jdplus-sdmx</groupId>
<artifactId>jdplus-sdmx-base-parent</artifactId>
<version>3.1.0</version>
<version>3.2.0</version>
</parent>

<artifactId>jdplus-sdmx-base-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jdplus-sdmx-base/jdplus-sdmx-base-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.nbbrd.jdplus-sdmx</groupId>
<artifactId>jdplus-sdmx-base</artifactId>
<version>3.1.0</version>
<version>3.2.0</version>
</parent>

<artifactId>jdplus-sdmx-base-parent</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jdplus-sdmx-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.github.nbbrd.jdplus-sdmx</groupId>
<artifactId>jdplus-sdmx</artifactId>
<version>3.1.0</version>
<version>3.2.0</version>
</parent>

<artifactId>jdplus-sdmx-base</artifactId>
Expand Down
5 changes: 2 additions & 3 deletions jdplus-sdmx-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.github.nbbrd.jdplus-sdmx</groupId>
<artifactId>jdplus-sdmx</artifactId>
<version>3.1.0</version>
<version>3.2.0</version>
</parent>

<artifactId>jdplus-sdmx-bom</artifactId>
Expand Down Expand Up @@ -42,7 +42,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.5.0</version>
<version>1.6.0</version>
<configuration>
<flattenMode>bom</flattenMode>
<outputDirectory>${project.build.directory}</outputDirectory>
Expand Down Expand Up @@ -89,7 +89,6 @@
<plugin>
<groupId>org.jreleaser</groupId>
<artifactId>jreleaser-maven-plugin</artifactId>
<version>1.8.0</version>
<executions>
<execution>
<id>release-assets</id>
Expand Down
2 changes: 1 addition & 1 deletion jdplus-sdmx-cli/jdplus-sdmx-cli-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.github.nbbrd.jdplus-sdmx</groupId>
<artifactId>jdplus-sdmx-cli</artifactId>
<version>3.1.0</version>
<version>3.2.0</version>
</parent>

<artifactId>jdplus-sdmx-cli-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jdplus-sdmx-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.github.nbbrd.jdplus-sdmx</groupId>
<artifactId>jdplus-sdmx</artifactId>
<version>3.1.0</version>
<version>3.2.0</version>
</parent>

<artifactId>jdplus-sdmx-cli</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions jdplus-sdmx-desktop/jdplus-sdmx-desktop-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.github.nbbrd.jdplus-sdmx</groupId>
<artifactId>jdplus-sdmx-desktop</artifactId>
<version>3.1.0</version>
<version>3.2.0</version>
</parent>

<artifactId>jdplus-sdmx-desktop-plugin</artifactId>
Expand Down Expand Up @@ -123,7 +123,7 @@
<dependency>
<groupId>com.github.nbbrd.java-desktop-util</groupId>
<artifactId>java-desktop-util-favicon</artifactId>
<version>2.3.0</version>
<version>2.4.0</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ public enum Toggle {
DEFAULT, DISABLE, ENABLE;

public void applyTo(Properties properties, CharSequence key) {
applyTo(properties, key, "false", "true");
}

public void applyTo(Properties properties, CharSequence key, String disableValue, String enableValue) {
switch (this) {
case DEFAULT -> properties.remove(key.toString());
case DISABLE -> properties.setProperty(key.toString(), Boolean.toString(false));
case ENABLE -> properties.setProperty(key.toString(), Boolean.toString(true));
case DISABLE -> properties.setProperty(key.toString(), disableValue);
case ENABLE -> properties.setProperty(key.toString(), enableValue);
}
}
}
Loading

0 comments on commit ba09bee

Please sign in to comment.