Skip to content

Commit 6a29d32

Browse files
author
Florian Alpers
committed
Merge branch 'develop' of git@gitea.intranda.com:goobi-viewer/goobi-viewer-indexer.git into develop
2 parents ce78042 + 9c3c6b2 commit 6a29d32

File tree

71 files changed

+5807
-4627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+5807
-4627
lines changed

.github/workflows/default.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/develop-build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build develop branch
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-24.04
12+
13+
steps:
14+
- name: Check out source code
15+
uses: actions/checkout@v4
16+
- name: Set up Java 21
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'temurin'
20+
java-version: '21'
21+
- name: Set up Maven cache
22+
uses: actions/cache@v4
23+
with:
24+
path: ~/.m2/repository
25+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
26+
restore-keys: |
27+
${{ runner.os }}-maven-
28+
- name: Compile Goobi viewer Indexer
29+
run: mvn -f goobi-viewer-indexer/pom.xml clean package -U -B
30+

.github/workflows/release-build.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-24.04
12+
13+
steps:
14+
- name: Check out source code
15+
uses: actions/checkout@v4
16+
- name: Set up Java 21
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'temurin'
20+
java-version: '21'
21+
- name: Set up Maven cache
22+
uses: actions/cache@v4
23+
with:
24+
path: ~/.m2/repository
25+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
26+
restore-keys: |
27+
${{ runner.os }}-maven-
28+
- name: Compile Goobi viewer Indexer
29+
run: mvn -f goobi-viewer-indexer/pom.xml clean package -U -B
30+
- name: Create a Github release
31+
uses: actions/create-release@v1
32+
id: create_release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
tag_name: ${{ github.ref }}
37+
release_name: Release ${{ github.ref }}
38+
draft: false
39+
prerelease: false
40+
- name: Upload solrIndexer.jar to Github Release
41+
uses: actions/upload-release-asset@v1.0.1
42+
id: upload-release-asset
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
with:
46+
upload_url: ${{ steps.create_release.outputs.upload_url }}
47+
asset_path: ./goobi-viewer-indexer/target/solr-Indexer.jar
48+
asset_name: solrIndexer.jar
49+
asset_content_type: application/x-java-archive
50+

.github/workflows/release.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pipeline {
4444
agent {
4545
docker {
4646
label 'controller'
47-
image 'nexus.intranda.com:4443/goobi-viewer-testing-index:latest'
47+
image 'nexus.intranda.com:4443/goobi-viewer-testing-index:latest21'
4848
args '-v $HOME/.m2:/var/maven/.m2:z -v $HOME/.config:/var/maven/.config -v $HOME/.sonar:/var/maven/.sonar -u 1000 -ti -e _JAVA_OPTIONS=-Duser.home=/var/maven -e MAVEN_CONFIG=/var/maven/.m2'
4949
registryUrl 'https://nexus.intranda.com:4443/'
5050
registryCredentialsId 'jenkins-docker'
@@ -69,7 +69,7 @@ pipeline {
6969
agent {
7070
docker {
7171
label 'controller'
72-
image 'nexus.intranda.com:4443/goobi-viewer-testing-index:latest'
72+
image 'nexus.intranda.com:4443/goobi-viewer-testing-index:latest21'
7373
args '-v $HOME/.m2:/var/maven/.m2:z -v $HOME/.config:/var/maven/.config -v $HOME/.sonar:/var/maven/.sonar -u 1000 -ti -e _JAVA_OPTIONS=-Duser.home=/var/maven -e MAVEN_CONFIG=/var/maven/.m2'
7474
registryUrl 'https://nexus.intranda.com:4443/'
7575
registryCredentialsId 'jenkins-docker'
@@ -85,7 +85,7 @@ pipeline {
8585
agent {
8686
docker {
8787
label 'controller'
88-
image 'nexus.intranda.com:4443/goobi-viewer-testing-index:latest'
88+
image 'nexus.intranda.com:4443/goobi-viewer-testing-index:latest21'
8989
args '-v $HOME/.m2:/var/maven/.m2:z -v $HOME/.config:/var/maven/.config -v $HOME/.sonar:/var/maven/.sonar -u 1000 -ti -e _JAVA_OPTIONS=-Duser.home=/var/maven -e MAVEN_CONFIG=/var/maven/.m2'
9090
registryUrl 'https://nexus.intranda.com:4443/'
9191
registryCredentialsId 'jenkins-docker'

goobi-viewer-indexer/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<attribute name="optional" value="true"/>
2727
</attributes>
2828
</classpathentry>
29-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
29+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21">
3030
<attributes>
3131
<attribute name="maven.pomderived" value="true"/>
3232
</attributes>

goobi-viewer-indexer/pom.xml

Lines changed: 61 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<modelVersion>4.0.0</modelVersion>
77
<groupId>io.goobi.viewer</groupId>
88
<artifactId>viewer-indexer</artifactId>
9-
<version>24.06-SNAPSHOT</version>
9+
<version>25.01-SNAPSHOT</version>
1010

1111

1212
<name>Goobi viewer - Indexer</name>
@@ -19,7 +19,7 @@
1919

2020
<properties>
2121
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22-
<maven.compiler.release>17</maven.compiler.release>
22+
<maven.compiler.release>21</maven.compiler.release>
2323
<skipTests>true</skipTests>
2424
<skipDependencyCheck>true</skipDependencyCheck>
2525
<failOnSnapshot>false</failOnSnapshot>
@@ -28,45 +28,45 @@
2828
<sonar.projectKey>intranda_goobi-viewer-indexer</sonar.projectKey>
2929
<sonar.organization>intranda</sonar.organization>
3030
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
31-
<sonar.java.source>17</sonar.java.source>
32-
<sonar.java.target>17</sonar.java.target>
31+
<sonar.java.source>21</sonar.java.source>
32+
<sonar.java.target>21</sonar.java.target>
3333

3434
<!-- Checkstyle -->
35-
<checkstyle.max.violations>180</checkstyle.max.violations>
35+
<checkstyle.max.violations>115</checkstyle.max.violations>
3636
<skipCheckstyle>true</skipCheckstyle>
3737

3838
<!-- Manifest information -->
3939
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
4040
<buildDate>${maven.build.timestamp}</buildDate>
4141

4242
<!-- intranda libraries -->
43-
<alto.version>1.6.0</alto.version>
44-
<iiif-api-model.version>2.6.3</iiif-api-model.version>
45-
<normdataimporter.version>1.11.0</normdataimporter.version>
43+
<alto.version>1.6.2</alto.version>
44+
<iiif-api-model.version>2.6.5</iiif-api-model.version>
45+
<normdataimporter.version>2.0.0-SNAPSHOT</normdataimporter.version>
4646

4747
<!-- other libraries -->
4848
<angus-mail.version>2.0.3</angus-mail.version>
49-
<commons-beanutils.version>1.9.4</commons-beanutils.version>
49+
<commons-beanutils.version>1.10.0</commons-beanutils.version>
5050
<commons-configuration2.version>2.11.0</commons-configuration2.version>
51-
<commons-io.version>2.16.1</commons-io.version>
51+
<commons-io.version>2.18.0</commons-io.version>
5252
<commons-jxpath.version>1.3</commons-jxpath.version>
53-
<commons-lang3.version>3.14.0</commons-lang3.version>
54-
<commons-text.version>1.12.0</commons-text.version>
53+
<commons-lang3.version>3.17.0</commons-lang3.version>
54+
<commons-text.version>1.13.0</commons-text.version>
5555
<httpclient.version>4.5.14</httpclient.version>
5656
<httpcore.version>4.4.16</httpcore.version>
57-
<icu.version>75.1</icu.version>
57+
<icu.version>76.1</icu.version>
5858
<imageio-openjpeg.version>0.6.8</imageio-openjpeg.version>
59-
<log4j.version>2.23.1</log4j.version>
60-
<jackson.version>2.17.1</jackson.version>
59+
<log4j.version>2.24.3</log4j.version>
60+
<jackson.version>2.18.2</jackson.version>
6161
<jaxen.version>2.0.0</jaxen.version>
6262
<jai.version>1.4.0</jai.version>
6363
<jakarta.mail-api.version>2.1.3</jakarta.mail-api.version>
6464
<jdom2.version>2.0.6.1</jdom2.version>
65-
<jsoup.version>1.17.2</jsoup.version>
66-
<json.version>20240303</json.version>
67-
<junit.version>5.10.2</junit.version>
65+
<jsoup.version>1.18.3</jsoup.version>
66+
<json.version>20250107</json.version>
67+
<junit.version>5.11.4</junit.version>
6868
<metadata-extractor.version>2.19.0</metadata-extractor.version>
69-
<solr.version>9.6.1</solr.version>
69+
<solr.version>9.7.0</solr.version>
7070
<sf-geojson.version>3.3.3</sf-geojson.version>
7171
</properties>
7272

@@ -263,7 +263,7 @@
263263
</dependencies>
264264

265265

266-
<build>
266+
<build>
267267
<resources>
268268
<resource>
269269
<directory>src/main/resources/</directory>
@@ -302,7 +302,9 @@
302302
<artifactId>maven-compiler-plugin</artifactId>
303303
<version>3.13.0</version>
304304
<configuration>
305-
<compilerArgs>
305+
<compilerArgs>
306+
<!-- Explicitly enable annotation processing -->
307+
<arg>-proc:full</arg>
306308
<arg>-Xlint:deprecation</arg>
307309
<arg>-Xlint:unchecked</arg>
308310
</compilerArgs>
@@ -311,15 +313,15 @@
311313
<plugin>
312314
<groupId>org.apache.maven.plugins</groupId>
313315
<artifactId>maven-surefire-plugin</artifactId>
314-
<version>3.3.0</version>
316+
<version>3.5.2</version>
315317
<configuration>
316318
<skipTests>${skipTests}</skipTests>
317319
</configuration>
318320
</plugin>
319321
<plugin>
320322
<groupId>org.apache.maven.plugins</groupId>
321323
<artifactId>maven-dependency-plugin</artifactId>
322-
<version>3.7.1</version>
324+
<version>3.8.1</version>
323325
<executions>
324326
<execution>
325327
<id>analyze</id>
@@ -376,7 +378,7 @@
376378
<plugin>
377379
<groupId>org.codehaus.mojo</groupId>
378380
<artifactId>buildnumber-maven-plugin</artifactId>
379-
<version>3.2.0</version>
381+
<version>3.2.1</version>
380382
<configuration>
381383
<shortRevisionLength>7</shortRevisionLength>
382384
<doCheck>false</doCheck>
@@ -443,7 +445,7 @@
443445
<plugin>
444446
<groupId>org.codehaus.mojo</groupId>
445447
<artifactId>versions-maven-plugin</artifactId>
446-
<version>2.16.2</version>
448+
<version>2.18.0</version>
447449
<configuration>
448450
<rulesUri>file://${basedir}/version-number-rules.xml</rulesUri>
449451
</configuration>
@@ -475,12 +477,12 @@
475477
<plugin>
476478
<groupId>org.apache.maven.plugins</groupId>
477479
<artifactId>maven-checkstyle-plugin</artifactId>
478-
<version>3.4.0</version>
480+
<version>3.6.0</version>
479481
<dependencies>
480482
<dependency>
481483
<groupId>com.puppycrawl.tools</groupId>
482484
<artifactId>checkstyle</artifactId>
483-
<version>10.17.0</version>
485+
<version>10.21.1</version>
484486
</dependency>
485487
</dependencies>
486488
<executions>
@@ -501,7 +503,38 @@
501503
</goals>
502504
</execution>
503505
</executions>
504-
</plugin>
506+
</plugin>
507+
<plugin>
508+
<groupId>org.apache.maven.plugins</groupId>
509+
<artifactId>maven-javadoc-plugin</artifactId>
510+
<version>3.11.2</version>
511+
<configuration>
512+
<doclint>none</doclint>
513+
<failOnWarnings>true</failOnWarnings>
514+
<!-- Specifies the tags to be fixed automatically when running the mvn javadox:fix command, see:
515+
https://maven.apache.org/plugins/maven-javadoc-plugin/fix-mojo.html#fixTags
516+
-->
517+
<fixTags>link,throws,return,param</fixTags>
518+
<tags>
519+
<tag>
520+
<!-- Disables custom @should tag in Javadoc see:
521+
https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#tags
522+
-->
523+
<name>should</name>
524+
<placement>X</placement>
525+
</tag>
526+
</tags>
527+
</configuration>
528+
<executions>
529+
<execution>
530+
<id>check-javadoc</id>
531+
<phase>verify</phase>
532+
<goals>
533+
<goal>jar</goal>
534+
</goals>
535+
</execution>
536+
</executions>
537+
</plugin>
505538
</plugins>
506539
</build>
507540
</project>

0 commit comments

Comments
 (0)