Skip to content

Commit a5e2933

Browse files
Merge pull request #235 from kit-data-manager/development
PR for v1.0.2
2 parents f0edb31 + b1fb2f9 commit a5e2933

File tree

11 files changed

+106
-66
lines changed

11 files changed

+106
-66
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
6161
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
6262
- name: Build and push Docker image
63-
uses: docker/build-push-action@v5
63+
uses: docker/build-push-action@v6
6464
with:
6565
context: .
6666
push: true
@@ -109,7 +109,7 @@ jobs:
109109
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
110110
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
111111
- name: Build and push Docker image
112-
uses: docker/build-push-action@v5
112+
uses: docker/build-push-action@v6
113113
with:
114114
context: .
115115
push: true

.github/workflows/gradle.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ name: build
55

66
on:
77
push:
8-
branches: [ master, main ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ master, main, development ]
10+
branches: [ main, development ]
1111

1212
env:
1313
# JDK version used for building jar file
14-
currentBuildVersion: 17
14+
currentBuildVersion: 21
1515
jobs:
1616
build:
1717
runs-on: ${{ matrix.operating-system }}
@@ -20,7 +20,7 @@ jobs:
2020
# operating-system: [ubuntu-latest, macOS-latest, windows-latest]
2121
operating-system: [ubuntu-latest]
2222
# Use both LTS releases and latest one for tests
23-
jdk: [ 17, 19 ]
23+
jdk: [ 21, 23 ]
2424
steps:
2525
- name: Checkout repo
2626
uses: actions/checkout@v4
@@ -76,6 +76,6 @@ jobs:
7676
- name: Build with Gradle (JDK ${{ env.currentBuildVersion }})
7777
run: ./gradlew clean check jacocoTestReport
7878
- name: Codecov
79-
uses: codecov/codecov-action@v3
79+
uses: codecov/codecov-action@v5
8080
with:
8181
files: ./build/reports/jacoco/test/jacocoTestReport.xml #optional

CHANGELOG.md

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

1212
### Changed
1313

14+
## [1.0.2] - date 2024-11-22
15+
### Changed
16+
- Update python Docker tag to v3.13
17+
- Upgrade to Java 21.
18+
- Update dependency gradle to v8.11.1
19+
20+
### Libs
21+
- Bump com.github.jknack:handlebars from 4.3.1 to 4.4.0
22+
- Bump com.gorylenko.gradle-git-properties from 2.4.1 to 2.4.2
23+
- Bump commons-codec:commons-codec from 1.16.0 to 1.16.1
24+
- Update dependency edu.kit.datamanager:service-base to v1.3.2
25+
- Update plugin io.freefair.lombok to v8.11
26+
- Update plugin io.freefair.maven-publish-java to v8.11
27+
- Update javersVersion to v7.7.0
28+
- Update dependency org.apache.tika:tika-core to v3
29+
- Bump org.asciidoctor.jvm.convert from 4.0.1 to 4.0.2
30+
- Bump org.json:json from 20231013 to 20240205
31+
- Bump org.mockito:mockito-core from 5.8.0 to 5.10.0
32+
- Bump org.owasp.dependencycheck from 9.0.8 to 9.0.9
33+
- Bump org.postgresql:postgresql from 42.7.1 to 42.7.3
34+
- Update plugin org.springframework.boot to v3.3.6
35+
- Bump org.springframework.data:spring-data-elasticsearch from 5.2.2 to 5.2.3.
36+
- Bump org.springframework:spring-messaging from 6.1.3 to 6.1.6
37+
38+
### Github Actions
39+
- Bump codecov/codecov-action from 3 to 4
40+
1441
## [1.0.1] - date 2024-01-12
1542
### Changed
1643
- Use softlink to jar file in start script.
@@ -150,7 +177,8 @@ and mapping of metadata documents delivered by RabbitMQ
150177
- Mapping of metadata documents with Gemma
151178
- Ingest to elasticsearch
152179

153-
[Unreleased]: https://github.com/kit-data-manager/indexing-service/compare/v1.0.1...HEAD
180+
[Unreleased]: https://github.com/kit-data-manager/indexing-service/compare/v1.0.2...HEAD
181+
[1.0.2]: https://github.com/kit-data-manager/indexing-service/compare/v1.0.1...v1.0.2
154182
[1.0.1]: https://github.com/kit-data-manager/indexing-service/compare/v1.0.0...v1.0.1
155183
[1.0.0]: https://github.com/kit-data-manager/indexing-service/compare/v0.9.0...v1.0.0
156184
[0.9.0]: https://github.com/kit-data-manager/indexing-service/compare/v0.1.3...v0.9.0

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ authors:
1919
title: "Indexing and Mapping Service"
2020
type: software
2121
abstract: Indexing and Mapping Service is a software for (optional) mapping and indexing metadata documents for (elastic)search.
22-
version: 0.9.0
23-
date-released: 2023-07-25
22+
version: 1.0.2
23+
date-released: 2024-11-22
2424
url: "https://github.com/kit-data-manager/indexing-service"
2525
repository-code: "https://github.com/kit-data-manager/indexing-service"
2626
license: Apache-2.0

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ ARG SERVICE_ROOT_DIRECTORY_DEFAULT=/spring/
1111
####################################################
1212
# Building environment (java & git)
1313
####################################################
14-
FROM python:3.10 AS build-env-java
14+
FROM python:3.13 AS build-env-java
1515
LABEL maintainer=webmaster@datamanager.kit.edu
1616
LABEL stage=build-env
1717

1818
# Install git as additional requirement
1919
RUN apt-get update && \
2020
apt-get upgrade --no-install-recommends --assume-yes && \
2121
apt-get install --no-install-recommends --assume-yes git && \
22-
apt-get install --no-install-recommends --assume-yes openjdk-17-jdk && \
22+
wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb && \
23+
dpkg -i jdk-21_linux-x64_bin.deb && \
2324
apt-get clean && \
2425
rm -rf /var/lib/apt/lists/*
2526

@@ -50,7 +51,7 @@ RUN bash ./build4docker.sh $SERVICE_DIRECTORY
5051
####################################################
5152
# Runtime environment 4 indexing-service
5253
####################################################
53-
FROM python:3.10 AS run-service-indexing
54+
FROM python:3.13 AS run-service-indexing
5455
LABEL maintainer=webmaster@datamanager.kit.edu
5556
LABEL stage=run
5657

@@ -67,7 +68,8 @@ ENV REPO_PORT=${REPO_PORT_DEFAULT}
6768
# Install JDK17
6869
RUN apt-get update && \
6970
apt-get upgrade --no-install-recommends --assume-yes && \
70-
apt-get install --no-install-recommends --assume-yes openjdk-17-jdk && \
71+
wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb && \
72+
dpkg -i jdk-21_linux-x64_bin.deb && \
7173
apt-get clean && \
7274
rm -rf /var/lib/apt/lists/*
7375

build.gradle

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
plugins {
2-
id "org.springframework.boot" version "3.2.1"
3-
id "io.spring.dependency-management" version "1.1.4"
4-
id "io.freefair.lombok" version "8.4"
5-
id "io.freefair.maven-publish-java" version "8.4"
6-
id "org.owasp.dependencycheck" version "9.0.8"
7-
id 'org.asciidoctor.jvm.convert' version '4.0.1'
2+
id "org.springframework.boot" version "3.3.6"
3+
id "io.spring.dependency-management" version "1.1.6"
4+
id "io.freefair.lombok" version "8.11"
5+
id "io.freefair.maven-publish-java" version "8.11"
6+
id "org.owasp.dependencycheck" version "11.1.0"
7+
id 'org.asciidoctor.jvm.convert' version '4.0.3'
88
id 'net.researchgate.release' version '3.0.2'
9-
id "com.gorylenko.gradle-git-properties" version "2.4.1"
9+
id "com.gorylenko.gradle-git-properties" version "2.4.2"
1010
id 'java'
1111
id 'jacoco'
1212
}
1313

1414
ext {
1515
// versions of dependencies
16-
javersVersion = '7.3.7'
17-
springDocVersion = '2.3.0'
16+
javersVersion = '7.7.0'
17+
springDocVersion = '2.6.0'
1818
}
1919

2020
description = 'Generic indexing service supporting different mapping implementations.'
@@ -30,8 +30,8 @@ repositories {
3030
}
3131

3232
java {
33-
sourceCompatibility = JavaVersion.VERSION_17
34-
targetCompatibility = JavaVersion.VERSION_17
33+
sourceCompatibility = JavaVersion.VERSION_21
34+
targetCompatibility = JavaVersion.VERSION_21
3535
}
3636

3737
configurations {
@@ -51,8 +51,8 @@ if (System.getProperty('profile') == 'minimal') {
5151

5252
dependencies {
5353
// Spring
54-
implementation 'org.springframework:spring-messaging:6.1.3'
55-
implementation 'org.springframework.cloud:spring-cloud-gateway-mvc:4.1.1'
54+
implementation 'org.springframework:spring-messaging:6.2.0'
55+
implementation 'org.springframework.cloud:spring-cloud-gateway-mvc:4.1.5'
5656

5757
// Spring Boot
5858
// boot starter
@@ -63,49 +63,49 @@ dependencies {
6363
implementation "org.springframework.boot:spring-boot-starter-security"
6464
implementation "org.springframework.boot:spring-boot-starter-actuator"
6565
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
66-
implementation 'org.springframework.data:spring-data-elasticsearch:5.2.2'
66+
implementation 'org.springframework.data:spring-data-elasticsearch:5.4.0'
6767

6868
// springdoc
6969
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${springDocVersion}"
7070
implementation "org.springdoc:springdoc-openapi-starter-common:${springDocVersion}"
7171
implementation "org.springdoc:springdoc-openapi-starter-webmvc-api:${springDocVersion}"
7272

7373
// driver for postgres
74-
implementation "org.postgresql:postgresql:42.7.1"
74+
implementation "org.postgresql:postgresql:42.7.4"
7575
//driver for h2
76-
implementation "com.h2database:h2:2.2.224"
76+
implementation "com.h2database:h2:2.3.232"
7777

7878
//apache
79-
implementation "org.apache.tika:tika-core:2.9.1"
80-
implementation "commons-codec:commons-codec:1.16.0"
79+
implementation "org.apache.tika:tika-core:3.0.0"
80+
implementation "commons-codec:commons-codec:1.17.1"
8181

82-
implementation "com.github.jknack:handlebars:4.3.1"
83-
implementation "org.json:json:20231013"
82+
implementation "com.github.jknack:handlebars:4.4.0"
83+
implementation "org.json:json:20240303"
8484

8585
// javers
8686
implementation "org.javers:javers-spring-boot-starter-sql:${javersVersion}"
8787
implementation "org.javers:javers-core:${javersVersion}"
8888

8989
// datamanager
9090
implementation "edu.kit.datamanager:generic-message-consumer:1.1.1"
91-
implementation "edu.kit.datamanager:repo-core:1.2.1"
92-
implementation "edu.kit.datamanager:service-base:1.2.0"
91+
implementation "edu.kit.datamanager:repo-core:1.2.3"
92+
implementation "edu.kit.datamanager:service-base:1.3.2"
9393

9494
// actuator
95-
implementation 'de.codecentric:spring-boot-admin-starter-client:3.2.1'
95+
implementation 'de.codecentric:spring-boot-admin-starter-client:3.3.6'
9696

9797
runtimeOnly 'org.apache.httpcomponents:httpclient:4.5.14'
9898

9999
// Additional libraries for tests
100-
testImplementation "com.google.guava:guava:33.0.0-jre"
100+
testImplementation "com.google.guava:guava:33.3.1-jre"
101101

102102
//Java 11 Support
103-
testImplementation "org.mockito:mockito-core:5.8.0"
103+
testImplementation "org.mockito:mockito-core:5.14.2"
104104
testImplementation "junit:junit:4.13.2"
105105

106106
// boot starter
107107
testImplementation "org.springframework.boot:spring-boot-starter-test"
108-
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:3.0.1'
108+
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:3.0.3'
109109
testImplementation "org.springframework.security:spring-security-test"
110110
testImplementation "org.springframework:spring-test"
111111
}
@@ -132,7 +132,7 @@ bootJar {
132132
}
133133

134134
jacoco {
135-
toolVersion = "0.8.10"
135+
toolVersion = "0.8.12"
136136
}
137137

138138
// task for printing project name.

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ action.custom-3=asciidoctor
1515
action.custom-3.args=--configure-on-demand -w -x check asciidoctor
1616
action.custom-4=buildBootableJar
1717
action.custom-4.args=--configure-on-demand -w -x check -x test -Prelease build
18-
netbeans.hint.jdkPlatform=JDK_17

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.2.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

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

0 commit comments

Comments
 (0)