Skip to content

Commit 2bf6291

Browse files
authored
Merge pull request #321 from kit-data-manager/development
Development 2.1.1
2 parents c93a6f4 + aebc360 commit 2bf6291

10 files changed

Lines changed: 101 additions & 78 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM mcr.microsoft.com/devcontainers/java:25
2+
3+
# Install Node.js LTS
4+
RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \
5+
apt-get install -y nodejs && \
6+
rm -rf /var/lib/apt/lists/*
7+
RUN npm install -g ro-crate-html-js
8+
9+
# Verify installations
10+
RUN node --version && npm --version

.devcontainer/devcontainer.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "Java (Gradle)",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"customizations": {
7+
"zed": {
8+
"extensions": ["java"]
9+
}
10+
},
11+
"forwardPorts": [8080]
12+
}

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
41+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v4
45+
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -56,7 +56,7 @@ jobs:
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below)
5858
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v4
59+
uses: github/codeql-action/autobuild@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
6060

6161
# Command-line programs to run using the OS shell.
6262
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -69,4 +69,4 @@ jobs:
6969
# ./location_of_script_within_repo/buildscript.sh
7070

7171
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v4
72+
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2

.github/workflows/gradle.yml

Lines changed: 45 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,59 @@ name: Build & Tests
99

1010
on:
1111
push:
12-
branches: [ main, development ]
12+
branches: [main, development]
1313
pull_request:
1414
workflow_dispatch:
1515

16-
env:
17-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
18-
1916
jobs:
2017
build:
2118
strategy:
2219
matrix:
2320
os: [ubuntu-latest, macos-latest, windows-latest]
24-
jdk: [ 17, 21 ] # (open)JDK releases
21+
jdk: [17, 21, 25, 26] # (open)JDK releases
2522
runs-on: ${{ matrix.os }}
2623

2724
steps:
28-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
29-
- name: Set up openJDK version
30-
uses: actions/setup-java@v5
31-
with:
32-
java-version: ${{ matrix.jdk }}
33-
distribution: 'zulu'
34-
- name: Install Dependencies
35-
run: npm install -g ro-crate-html-js
36-
- name: Setup Gradle
37-
uses: gradle/actions/setup-gradle@v5
38-
- name: Build and Test with Gradle
39-
run: ./gradlew -Dprofile=release build
40-
- name: Upload (test) reports as artifact on GitHub on manual runs
41-
if: github.event_name == 'workflow_dispatch'
42-
uses: actions/upload-artifact@v5
43-
with:
44-
name: test-report ${{ matrix.os }} JDK ${{ matrix.jdk }}
45-
path: build/reports
46-
- name: Do one Coveralls test report
47-
if: matrix.os == 'ubuntu-latest' && matrix.jdk == 21
48-
run: ./gradlew -Dprofile=release jacocoTestReport coveralls
49-
- name: Compile Javadoc
50-
if: matrix.os == 'ubuntu-latest' && matrix.jdk == 21
51-
run: ./gradlew javadoc
25+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
26+
- name: Set up openJDK version
27+
uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0
28+
with:
29+
java-version: ${{ matrix.jdk }}
30+
distribution: "zulu"
31+
- name: Install Dependencies
32+
run: npm install -g ro-crate-html-js
33+
- name: Setup Gradle
34+
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
35+
- name: Build and Test with Gradle
36+
run: ./gradlew -Dprofile=release build
37+
- name: Upload (test) reports as artifact on GitHub on manual runs
38+
if: github.event_name == 'workflow_dispatch'
39+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
40+
with:
41+
name: test-report ${{ matrix.os }} JDK ${{ matrix.jdk }}
42+
path: build/reports
43+
coverage:
44+
needs: build
45+
runs-on: ubuntu-latest
46+
env:
47+
jdkversion: 25
48+
steps:
49+
- name: Checkout repo
50+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
51+
- name: Set up OpenJDK version ...
52+
uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0
53+
with:
54+
distribution: "zulu"
55+
java-version: ${{ env.jdkversion }}
56+
- name: Install Dependencies
57+
run: npm install -g ro-crate-html-js
58+
- name: Grant execute permission for gradlew
59+
run: chmod +x gradlew
60+
- name: Build with Gradle (JDK ${{ env.jdkversion }})
61+
run: ./gradlew clean check jacocoTestReport
62+
- name: Codecov
63+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7
64+
with:
65+
files: ./build/reports/jacoco/test/jacocoTestReport.xml #optional
66+
- name: Compile Javadoc
67+
run: ./gradlew javadoc

.github/workflows/publishRelease.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
11+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
1212
- name: Set up Java
13-
uses: actions/setup-java@v5
13+
uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0
1414
with:
1515
java-version: 21
1616
distribution: 'zulu' # openjdk

build.gradle

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ plugins {
33
id 'jvm-test-suite'
44
id 'application'
55
id 'jacoco'
6-
// Adds coveralls task for CI to send results to the coveralls service.
7-
id "com.github.kt3k.coveralls" version "2.12.2"
86

97
// Instructions: https://github.com/researchgate/gradle-release
108
// Available versions: https://plugins.gradle.org/plugin/net.researchgate.release
@@ -13,7 +11,7 @@ plugins {
1311
// Publishing of JAR to Nexus instances (e.g., OSSRH)
1412
// https://github.com/gradle-nexus/publish-plugin
1513
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
16-
id "io.freefair.maven-publish-java" version "9.1.0"
14+
id "io.freefair.maven-publish-java" version "9.5.0"
1715
}
1816

1917
group = 'edu.kit.datamanager'
@@ -45,7 +43,7 @@ ext {
4543

4644
dependencies {
4745
// JUnit setup for testing
48-
testImplementation(platform("org.junit:junit-bom:6.0.1"))
46+
testImplementation(platform("org.junit:junit-bom:6.1.0"))
4947
testImplementation('org.junit.jupiter:junit-jupiter')
5048
testRuntimeOnly('org.junit.platform:junit-platform-launcher')
5149
// JSON object mapping / (de-)serialization
@@ -54,22 +52,22 @@ dependencies {
5452
// http client
5553
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.14'
5654
// common file system operations
57-
implementation group: 'commons-io', name: 'commons-io', version: '2.21.0'
55+
implementation group: 'commons-io', name: 'commons-io', version: '2.22.0'
5856
// read from and write to zip files
59-
implementation group: 'net.lingala.zip4j', name: 'zip4j', version: '2.11.5'
57+
implementation group: 'net.lingala.zip4j', name: 'zip4j', version: '2.11.6'
6058
// compare json documents in tests
61-
implementation 'com.github.fslev:json-compare:7.2'
59+
implementation 'com.github.fslev:json-compare:8.1'
6260
// url validator
6361
implementation group: 'commons-validator', name: 'commons-validator', version: '1.10.1'
6462
// logging
65-
implementation group: 'org.slf4j', name: 'slf4j-jdk14', version: '2.0.17'
63+
implementation group: 'org.slf4j', name: 'slf4j-jdk14', version: '2.0.18'
6664
// JSON-LD, Zenodo mapping
6765
implementation group: 'com.apicatalog', name: 'titanium-json-ld', version: '1.7.0'
6866
// metadata validation, profiles based on JSON schema
6967
implementation group: "com.networknt", name: "json-schema-validator", version: "1.5.9"
7068
implementation 'org.glassfish:jakarta.json:2.0.1'
7169
//JTE for template processing
72-
implementation('gg.jte:jte:3.2.1')
70+
implementation('gg.jte:jte:3.2.4')
7371
implementation("org.freemarker:freemarker:2.3.34")
7472
}
7573

@@ -186,12 +184,12 @@ jacocoTestReport {
186184
dependsOn test
187185
reports {
188186
csv.required = true
189-
xml.required = true // coveralls plugin depends on xml format report
187+
xml.required = true // codecov plugin may depend on xml format report
190188
}
191189
}
192190

193191
jacoco {
194-
toolVersion = "0.8.14"
192+
toolVersion = "0.8.15"
195193
}
196194

197195
// maxParallelForks(2)

gradle/wrapper/gradle-wrapper.jar

4.59 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.0-bin.zip
44
networkTimeout=10000
5+
retries=0
6+
retryBackOffMs=500
57
validateDistributionUrl=true
68
zipStoreBase=GRADLE_USER_HOME
79
zipStorePath=wrapper/dists

gradlew

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 12 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)