Skip to content

Commit 1250105

Browse files
authored
Merge pull request #287 from kit-data-manager/development
PR for v1.2.3
2 parents 9f48b03 + 121e798 commit 1250105

File tree

13 files changed

+356
-68
lines changed

13 files changed

+356
-68
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ updates:
77
interval: "weekly"
88
open-pull-requests-limit: 0
99

10-
1110
- package-ecosystem: "github-actions"
1211
directory: "/"
1312
target-branch: "development"

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
# Initialize minimum JDK version
4444
- name: Setup Java JDK
45-
uses: actions/setup-java@v4.2.1
45+
uses: actions/setup-java@v4.5.0
4646
with:
4747
distribution: zulu
4848
java-version: 17

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Checkout repo
2525
uses: actions/checkout@v4
2626
- name: Set up OpenJDK version ...
27-
uses: actions/setup-java@v4.2.1
27+
uses: actions/setup-java@v4.5.0
2828
with:
2929
distribution: 'zulu'
3030
java-version: ${{ matrix.jdk }}
@@ -50,7 +50,7 @@ jobs:
5050
- name: Checkout repo
5151
uses: actions/checkout@v4
5252
- name: Set up OpenJDK version ...
53-
uses: actions/setup-java@v4.2.1
53+
uses: actions/setup-java@v4.5.0
5454
with:
5555
distribution: 'zulu'
5656
java-version: ${{ env.currentBuildVersion }}

.github/workflows/publishRelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
steps:
99
- uses: actions/checkout@v4
1010
- name: Set up Java
11-
uses: actions/setup-java@v4.2.1
11+
uses: actions/setup-java@v4.5.0
1212
with:
1313
java-version: 17
1414
distribution: zulu

CHANGELOG.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,47 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
### Removed
1818

19+
## [1.2.3] - 2024-11-08
20+
21+
### Added
22+
* Enhanced searching capabilities for related identifiers with new methods in the RelatedIdentifierSpec class.
23+
* Comprehensive unit tests added for the RelatedIdentifierSpec class to ensure robust functionality.
24+
25+
### Fixed
26+
* Fixed potential issue with unprivileged find
27+
* Improved error messaging for missing publisher during updates in the DataResourceService.
28+
29+
### Security
30+
* Update actions/setup-java action to v4.5.0
31+
* Update dependency com.fasterxml.jackson.datatype:jackson-datatype-joda to v2.18.1.
32+
* Update dependency com.fasterxml.jackson.datatype:jackson-datatype-jsr310 to v2.18.1
33+
* Update dependency com.fasterxml.jackson.module:jackson-module-afterburner to v2.18.1
34+
* Update dependency com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider to v2.18.1
35+
* Update dependency com.google.code.gson:gson to v2.11.0
36+
* Bump commons-io:commons-io from 2.16.1 to 2.17.0.
37+
* Update dependency de.codecentric:spring-boot-admin-starter-client to v3.3.5
38+
* Update dependency edu.kit.datamanager:service-base to v1.3.2
39+
* Update plugin io.freefair.lombok to v8.10.2
40+
* Update plugin io.freefair.maven-publish-java to v8.10.2
41+
* Update dependency gradle to v8.10.2
42+
* Update dependency jacoco to v0.8.12
43+
* Bump org.apache.tika:tika-core from 2.9.2 to 3.0.0
44+
* Update dependency org.javers:javers-spring-boot-starter-sql to v7.6.3
45+
* Bump org.javers:javers-spring-boot-starter-sql from 7.6.2 to 7.6.3
46+
* Update plugin org.owasp.dependencycheck to v11
47+
* Bump org.postgresql:postgresql from 42.7.3 to 42.7.4.
48+
* Update dependency org.springframework.boot:spring-boot-dependencies to v3.3.5
49+
* Update dependency org.springframework.data:spring-data-elasticsearch to v5.3.5
50+
* Update dependency org.springframework.restdocs:spring-restdocs-mockmvc to v3.0.2
51+
* Update dependency org.springframework:spring-messaging to v6.1.14
52+
53+
### Deprecated
54+
55+
### Removed
56+
* Removed outdated configuration for GitHub Actions in the project setup.
57+
58+
### Security
59+
1960
## [1.2.2] - 2024-04-02
2061

2162
### Fixed
@@ -276,7 +317,8 @@ Extracted from the 'base-repo' project.
276317
### Removed
277318
- none
278319

279-
[Unreleased]: https://github.com/kit-data-manager/repo-core/compare/v1.2.2...HEAD
320+
[Unreleased]: https://github.com/kit-data-manager/repo-core/compare/v1.2.3...HEAD
321+
[1.2.3]: https://github.com/kit-data-manager/repo-core/compare/v1.2.2...v1.2.3
280322
[1.2.2]: https://github.com/kit-data-manager/repo-core/compare/v1.2.1...v1.2.2
281323
[1.2.1]: https://github.com/kit-data-manager/repo-core/compare/v1.2.0...v1.2.1
282324
[1.2.0]: https://github.com/kit-data-manager/repo-core/compare/v1.1.2...v1.2.0

build.gradle

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* limitations under the License.
1515
*/
1616
plugins {
17-
id "io.freefair.lombok" version "8.6"
18-
id "io.freefair.maven-publish-java" version "8.6"
19-
id "io.spring.dependency-management" version "1.1.4"
17+
id "io.freefair.lombok" version "8.10.2"
18+
id "io.freefair.maven-publish-java" version "8.10.2"
19+
id "io.spring.dependency-management" version "1.1.6"
2020
//id "com.github.kt3k.coveralls" version "2.8.1"
21-
id "org.owasp.dependencycheck" version "9.1.0"
22-
id "org.asciidoctor.jvm.convert" version "4.0.2"
21+
id "org.owasp.dependencycheck" version "11.1.0"
22+
id "org.asciidoctor.jvm.convert" version "4.0.3"
2323
//id "org.ajoberstar.grgit" version "2.0.1"
2424
id "java"
2525
id "jacoco"
@@ -32,9 +32,9 @@ plugins {
3232

3333
ext {
3434
// versions of dependencies
35-
springBootVersion = '3.1.0'
36-
springDocVersion = '2.5.0'
37-
javersVersion = '7.4.2'
35+
springBootVersion = '3.3.5'
36+
springDocVersion = '2.6.0'
37+
javersVersion = '7.6.3'
3838
}
3939

4040
description = "Core module for data repositories based on metadata model of datacite."
@@ -69,15 +69,15 @@ if (project.hasProperty('release')) {
6969

7070
dependencies {
7171
// Spring
72-
implementation 'org.springframework:spring-messaging:6.0.2'
72+
implementation 'org.springframework:spring-messaging:6.1.14'
7373
// Spring Boot
7474
implementation "org.springframework.boot:spring-boot-starter-data-rest"
7575
implementation "org.springframework.boot:spring-boot-starter-amqp"
7676
implementation "org.springframework.boot:spring-boot-starter-web"
7777
implementation "org.springframework.boot:spring-boot-starter-security"
7878
implementation "org.springframework.boot:spring-boot-starter-actuator"
7979
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
80-
implementation 'org.springframework.data:spring-data-elasticsearch:5.1.0'
80+
implementation 'org.springframework.data:spring-data-elasticsearch:5.3.5'
8181

8282

8383
// springdoc
@@ -86,33 +86,34 @@ dependencies {
8686
implementation "org.springdoc:springdoc-openapi-starter-webmvc-api:${springDocVersion}"
8787
// apache
8888
implementation "commons-configuration:commons-configuration:1.10"
89-
implementation "commons-io:commons-io:2.16.1"
89+
implementation "commons-io:commons-io:2.17.0"
9090
implementation "org.apache.commons:commons-collections4:4.4"
9191
// includes commons-lang3
9292
implementation "org.apache.commons:commons-text:1.12.0"
9393
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
94-
implementation "org.apache.tika:tika-core:2.9.2"
94+
implementation "org.apache.tika:tika-core:3.0.0"
9595
// javers
9696
implementation "org.javers:javers-spring-boot-starter-sql:${javersVersion}"
97+
implementation "com.google.code.gson:gson:2.11.0"
9798

9899
// Database
99-
implementation "com.h2database:h2:2.2.224"
100-
implementation "org.postgresql:postgresql:42.7.3"
100+
implementation "com.h2database:h2:2.3.232"
101+
implementation "org.postgresql:postgresql:42.7.4"
101102
// XML
102-
implementation "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.17.0"
103-
implementation "com.fasterxml.jackson.module:jackson-module-afterburner:2.17.0"
103+
implementation "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.18.1"
104+
implementation "com.fasterxml.jackson.module:jackson-module-afterburner:2.18.1"
104105

105-
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.0"
106-
implementation "com.fasterxml.jackson.datatype:jackson-datatype-joda:2.17.0"
106+
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.1"
107+
implementation "com.fasterxml.jackson.datatype:jackson-datatype-joda:2.18.1"
107108

108109
//implementation "com.monitorjbl:spring-json-view:1.0.1"
109110

110-
implementation "de.codecentric:spring-boot-admin-starter-client:3.0.4"
111+
implementation "de.codecentric:spring-boot-admin-starter-client:3.3.5"
111112
// log4j core
112113
implementation "org.apache.logging.log4j:log4j-core"
113114
implementation "ch.qos.logback:logback-classic"
114115

115-
implementation "edu.kit.datamanager:service-base:1.3.1"
116+
implementation "edu.kit.datamanager:service-base:1.3.2"
116117

117118
implementation "com.github.java-json-tools:json-patch:1.13"
118119
implementation "com.github.dozermapper:dozer-core:7.0.0"
@@ -122,7 +123,7 @@ dependencies {
122123
// boot starter
123124
testImplementation 'org.springframework.boot:spring-boot-starter-validation'
124125
testImplementation "org.springframework.boot:spring-boot-starter-test"
125-
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:3.0.0'
126+
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:3.0.2'
126127
testImplementation "org.springframework.security:spring-security-test"
127128

128129
//Java 11 Support
@@ -154,7 +155,7 @@ test {
154155
}
155156

156157
jacoco {
157-
toolVersion = "0.8.11"
158+
toolVersion = "0.8.12"
158159
}
159160

160161
tasks.withType(Test) {

gradle/wrapper/gradle-wrapper.jar

-17.6 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
1820

1921
##############################################################################
2022
#
@@ -55,7 +57,7 @@
5557
# Darwin, MinGW, and NonStop.
5658
#
5759
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
60+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5961
# within the Gradle project.
6062
#
6163
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -83,10 +85,9 @@ done
8385
# This is normally unused
8486
# shellcheck disable=SC2034
8587
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
87-
88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
88+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90+
' "$PWD" ) || exit
9091

9192
# Use the maximum available, or set MAX_FD != -1 to use that value.
9293
MAX_FD=maximum
@@ -133,26 +134,29 @@ location of your Java installation."
133134
fi
134135
else
135136
JAVACMD=java
136-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137+
if ! command -v java >/dev/null 2>&1
138+
then
139+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137140
138141
Please set the JAVA_HOME variable in your environment to match the
139142
location of your Java installation."
143+
fi
140144
fi
141145

142146
# Increase the maximum file descriptors if we can.
143147
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144148
case $MAX_FD in #(
145149
max*)
146150
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
151+
# shellcheck disable=SC2039,SC3045
148152
MAX_FD=$( ulimit -H -n ) ||
149153
warn "Could not query maximum file descriptor limit"
150154
esac
151155
case $MAX_FD in #(
152156
'' | soft) :;; #(
153157
*)
154158
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
159+
# shellcheck disable=SC2039,SC3045
156160
ulimit -n "$MAX_FD" ||
157161
warn "Could not set maximum file descriptor limit to $MAX_FD"
158162
esac
@@ -197,11 +201,15 @@ if "$cygwin" || "$msys" ; then
197201
done
198202
fi
199203

200-
# Collect all arguments for the java command;
201-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
202-
# shell script including quotes and variable substitutions, so put them in
203-
# double quotes to make sure that they get re-expanded; and
204-
# * put everything else in single quotes, so that it's not re-expanded.
204+
205+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
206+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
207+
208+
# Collect all arguments for the java command:
209+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
210+
# and any embedded shellness will be escaped.
211+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
212+
# treated as '${Hostname}' itself on the command line.
205213

206214
set -- \
207215
"-Dorg.gradle.appname=$APP_BASE_NAME" \

gradlew.bat

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
@rem See the License for the specific language governing permissions and
1414
@rem limitations under the License.
1515
@rem
16+
@rem SPDX-License-Identifier: Apache-2.0
17+
@rem
1618

1719
@if "%DEBUG%"=="" @echo off
1820
@rem ##########################################################################
@@ -43,11 +45,11 @@ set JAVA_EXE=java.exe
4345
%JAVA_EXE% -version >NUL 2>&1
4446
if %ERRORLEVEL% equ 0 goto execute
4547

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
48+
echo. 1>&2
49+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
50+
echo. 1>&2
51+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
52+
echo location of your Java installation. 1>&2
5153

5254
goto fail
5355

@@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5759

5860
if exist "%JAVA_EXE%" goto execute
5961

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
62+
echo. 1>&2
63+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
64+
echo. 1>&2
65+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
66+
echo location of your Java installation. 1>&2
6567

6668
goto fail
6769

0 commit comments

Comments
 (0)