Skip to content

Commit d5fa32b

Browse files
Update auf Java 17 & Jakarta Namespace (#391)
* DAO & Criteria Klassen als deprecated markiert - ORM Mapper statt dessen verwenden * javax -> jakarta * mit Java 17 bauen * findbugs -> spotbugs * clean up * Deployment mit Java 17 * Remove .travis.yml file * clean up * Update pom.xml * Update build process to use JDK 17 and Maven
1 parent b0ea0b0 commit d5fa32b

File tree

134 files changed

+1654
-2259
lines changed

Some content is hidden

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

134 files changed

+1654
-2259
lines changed

.github/workflows/codeql.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,17 @@ jobs:
5757

5858
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
5959
# If this step fails, then you should remove it and run the build manually (see below)
60-
- name: Autobuild
61-
uses: github/codeql-action/autobuild@v3
60+
# - name: Autobuild
61+
# uses: github/codeql-action/autobuild@v3
62+
63+
- name: Set up JDK 17
64+
uses: actions/setup-java@v4
65+
with:
66+
java-version: 17
67+
distribution: 'temurin'
68+
69+
- name: Build with Maven
70+
run: mvn clean install
6271

6372
# ℹ️ Command-line programs to run using the OS shell.
6473
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

.github/workflows/maven-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
java: [ '8', '11', '17' ]
11+
java: [ '17', '21' ]
1212

1313
steps:
1414
- uses: actions/checkout@v4

.github/workflows/maven-publish-on-push.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v4
22-
- name: Set up JDK 1.8 for Github deployment
22+
- name: Set up JDK 17 for Github deployment
2323
uses: actions/setup-java@v4
2424
with:
25-
java-version: 8.0.302+8
25+
java-version: 17
2626
distribution: 'temurin'
2727
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
2828
settings-path: ${{ github.workspace }} # location for the settings.xml file
@@ -58,10 +58,10 @@ jobs:
5858
GITHUB_TOKEN: ${{ github.token }}
5959

6060

61-
- name: Set up JDK 1.8 for NERZ-Snapshot-Deployment
61+
- name: Set up JDK 17 for NERZ-Snapshot-Deployment
6262
uses: actions/setup-java@v4
6363
with:
64-
java-version: 8.0.302+8
64+
java-version: 17
6565
distribution: 'temurin'
6666
server-id: nerz-snapshots
6767
server-username: MAVEN_USERNAME
@@ -76,10 +76,10 @@ jobs:
7676
MAVEN_USERNAME: ${{ secrets.NERZ_USERNAME }}
7777
MAVEN_PASSWORD: ${{ secrets.NERZ_TOKEN }}
7878

79-
- name: Set up JDK 1.8 for NERZ-Release-Deployment
79+
- name: Set up JDK 17 for NERZ-Release-Deployment
8080
uses: actions/setup-java@v4
8181
with:
82-
java-version: 8.0.302+8
82+
java-version: 17
8383
distribution: 'temurin'
8484
server-id: nerz-releases
8585
server-username: MAVEN_USERNAME

.travis.yml

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

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
# com.bitctrl
66
Allgemeine Bibliothek für BitCtrl-Projekte
77

8+
## Version 3.0.0
9+
- Update auf Java 17
10+
- javax Namespace durch jakarta ersetzt
11+
- DAO & Criteria Klassen deprecated
12+
813
## Version 2.1.0
914

1015
- Publikation auf dem NERZ-Maven-Repository

pom.xml

Lines changed: 21 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66

77
<groupId>com.bitctrl</groupId>
88
<artifactId>com.bitctrl</artifactId>
9-
<version>2.1.1-SNAPSHOT</version>
9+
<version>3.0.0-SNAPSHOT</version>
1010

1111
<name>Allgemeine BitCtrl-Bibliothek</name>
1212
<url>http://bitctrl.github.io/${project.artifactId}/</url>
1313

1414
<properties>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1616
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
17-
<maven.compiler.source>1.8</maven.compiler.source>
18-
<maven.compiler.target>1.8</maven.compiler.target>
17+
<maven.compiler.source>17</maven.compiler.source>
18+
<maven.compiler.target>17</maven.compiler.target>
1919
</properties>
2020

2121
<licenses>
@@ -36,7 +36,8 @@
3636

3737
<scm>
3838
<connection>scm:git:https://github.com/bitctrl/${project.artifactId}.git</connection>
39-
<developerConnection>scm:git:https://github.com/bitctrl/${project.artifactId}.git</developerConnection>
39+
<developerConnection>
40+
scm:git:https://github.com/bitctrl/${project.artifactId}.git</developerConnection>
4041
<url>https://github.com/bitctrl/${project.artifactId}</url>
4142
</scm>
4243

@@ -63,12 +64,14 @@
6364
<repository>
6465
<id>bitctrl.nexus</id>
6566
<name>BitCtrl Nexus Releases Repository</name>
66-
<url>http://bitctrlbuildserver:8081/nexus/content/repositories/releases/</url>
67+
<url>
68+
http://nexus.ad.bitctrl.de/nexus/content/repositories/releases/</url>
6769
</repository>
6870
<snapshotRepository>
6971
<id>bitctrl.nexus.snapshots</id>
7072
<name>BitCtrl Nexus Snapshots Repository</name>
71-
<url>http://bitctrlbuildserver:8081/nexus/content/repositories/snapshots/</url>
73+
<url>
74+
http://nexus.ad.bitctrl.de/nexus/content/repositories/snapshots/</url>
7275
</snapshotRepository>
7376
</distributionManagement>
7477
</profile>
@@ -111,7 +114,8 @@
111114
<snapshotRepository>
112115
<id>nerz-snapshots</id>
113116
<name>NERZ Snapshots</name>
114-
<url>https://repo.nerz-ev.de/repository/nerz-maven-snapshots/</url>
117+
<url>
118+
https://repo.nerz-ev.de/repository/nerz-maven-snapshots/</url>
115119
</snapshotRepository>
116120
</distributionManagement>
117121
</profile>
@@ -130,16 +134,11 @@
130134
<version>1.16.1</version>
131135
</dependency>
132136
<dependency>
133-
<groupId>javax.xml.bind</groupId>
134-
<artifactId>jaxb-api</artifactId>
135-
<version>2.3.1</version>
137+
<groupId>jakarta.xml.bind</groupId>
138+
<artifactId>jakarta.xml.bind-api</artifactId>
139+
<version>4.0.2</version>
136140
</dependency>
137-
<dependency>
138-
<groupId>org.glassfish.jaxb</groupId>
139-
<artifactId>jaxb-runtime</artifactId>
140-
<version>2.3.5</version>
141-
</dependency>
142-
141+
143142
</dependencies>
144143

145144
<build>
@@ -170,7 +169,8 @@
170169
</goals>
171170
<configuration>
172171
<archive>
173-
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
172+
<manifestFile>
173+
${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
174174
</archive>
175175
</configuration>
176176
</execution>
@@ -229,20 +229,13 @@
229229
</executions>
230230
</plugin>
231231
<plugin>
232-
<groupId>org.codehaus.mojo</groupId>
233-
<artifactId>findbugs-maven-plugin</artifactId>
234-
<version>3.0.5</version>
232+
<groupId>com.github.spotbugs</groupId>
233+
<artifactId>spotbugs-maven-plugin</artifactId>
234+
<version>4.8.6.3</version>
235235
<configuration>
236-
<threshold>High</threshold>
237236
<includeTests>true</includeTests>
237+
<failOnError>false</failOnError>
238238
</configuration>
239-
<executions>
240-
<execution>
241-
<goals>
242-
<goal>check</goal>
243-
</goals>
244-
</execution>
245-
</executions>
246239
</plugin>
247240
<plugin>
248241
<groupId>biz.aQute.bnd</groupId>
@@ -304,57 +297,6 @@
304297
</reportSet>
305298
</reportSets>
306299
</plugin>
307-
<plugin>
308-
<groupId>org.codehaus.mojo</groupId>
309-
<artifactId>findbugs-maven-plugin</artifactId>
310-
<version>3.0.5</version>
311-
<configuration>
312-
<includeTests>true</includeTests>
313-
</configuration>
314-
</plugin>
315-
<plugin>
316-
<groupId>org.codehaus.mojo</groupId>
317-
<artifactId>jdepend-maven-plugin</artifactId>
318-
<version>2.0</version>
319-
</plugin>
320-
<plugin>
321-
<groupId>org.codehaus.mojo</groupId>
322-
<artifactId>taglist-maven-plugin</artifactId>
323-
<version>3.1.0</version>
324-
<configuration>
325-
<tagListOptions>
326-
<tagClasses>
327-
<tagClass>
328-
<displayName>Ungelöste Probleme</displayName>
329-
<tags>
330-
<tag>
331-
<matchString>FIXME</matchString>
332-
<matchType>ignoreCase</matchType>
333-
</tag>
334-
</tags>
335-
</tagClass>
336-
<tagClass>
337-
<displayName>Offene Punkte</displayName>
338-
<tags>
339-
<tag>
340-
<matchString>TODO</matchString>
341-
<matchType>ignoreCase</matchType>
342-
</tag>
343-
</tags>
344-
</tagClass>
345-
<tagClass>
346-
<displayName>Markierungen</displayName>
347-
<tags>
348-
<tag>
349-
<matchString>XXX</matchString>
350-
<matchType>ignoreCase</matchType>
351-
</tag>
352-
</tags>
353-
</tagClass>
354-
</tagClasses>
355-
</tagListOptions>
356-
</configuration>
357-
</plugin>
358300
</plugins>
359301
</reporting>
360302

src/main/java/com/bitctrl/Constants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public final class Constants {
6363
/**
6464
* Ein leerer String.
6565
* <p>
66-
* <em>Hinweis</em>: Der Test mit {@code equals()} auf den Leerstring ist
67-
* sehr ineffektiv, deswegen sollte bis Java 6 besser geprüft werden ob
66+
* <em>Hinweis</em>: Der Test mit {@code equals()} auf den Leerstring ist sehr
67+
* ineffektiv, deswegen sollte bis Java 6 besser geprüft werden ob
6868
* {@link String#length()} gleich 0 ist. Ab Java 6 kann für den Test auf den
6969
* Leerstring {@link String#isEmpty()} verwendet werden.
7070
*/

src/main/java/com/bitctrl/ReleaseInfo.java

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ public class ReleaseInfo {
4747
/**
4848
* Erzeugt eine Versionsnummer.
4949
*
50-
* @param major
51-
* das Major-Release.
50+
* @param major das Major-Release.
5251
*/
5352
public ReleaseInfo(final int major) {
5453
this.major = major;
@@ -60,10 +59,8 @@ public ReleaseInfo(final int major) {
6059
/**
6160
* Erzeugt eine Versionsnummer.
6261
*
63-
* @param major
64-
* das Major-Release.
65-
* @param minor
66-
* das Minor-Release.
62+
* @param major das Major-Release.
63+
* @param minor das Minor-Release.
6764
*/
6865
public ReleaseInfo(final int major, final int minor) {
6966
this.major = major;
@@ -75,12 +72,9 @@ public ReleaseInfo(final int major, final int minor) {
7572
/**
7673
* Erzeugt eine Versionsnummer.
7774
*
78-
* @param major
79-
* das Major-Release.
80-
* @param minor
81-
* das Minor-Release.
82-
* @param patchLevel
83-
* der Patch-Level.
75+
* @param major das Major-Release.
76+
* @param minor das Minor-Release.
77+
* @param patchLevel der Patch-Level.
8478
*/
8579
public ReleaseInfo(final int major, final int minor, final int patchLevel) {
8680
this.major = major;
@@ -92,17 +86,12 @@ public ReleaseInfo(final int major, final int minor, final int patchLevel) {
9286
/**
9387
* Erzeugt eine Versionsnummer.
9488
*
95-
* @param major
96-
* das Major-Release.
97-
* @param minor
98-
* das Minor-Release.
99-
* @param patchLevel
100-
* der Patch-Level.
101-
* @param buildNumber
102-
* die Build-Number.
89+
* @param major das Major-Release.
90+
* @param minor das Minor-Release.
91+
* @param patchLevel der Patch-Level.
92+
* @param buildNumber die Build-Number.
10393
*/
104-
public ReleaseInfo(final int major, final int minor, final int patchLevel,
105-
final int buildNumber) {
94+
public ReleaseInfo(final int major, final int minor, final int patchLevel, final int buildNumber) {
10695
this.major = major;
10796
this.minor = minor;
10897
this.patchLevel = patchLevel;
@@ -112,8 +101,7 @@ public ReleaseInfo(final int major, final int minor, final int patchLevel,
112101
/**
113102
* Erzeugt eine Versionsnummer.
114103
*
115-
* @param release
116-
* ein String, der die Versionsnummer enthält.
104+
* @param release ein String, der die Versionsnummer enthält.
117105
*/
118106
public ReleaseInfo(final String release) {
119107
if (Pattern.matches(PATTERN, release)) {
@@ -156,8 +144,7 @@ public ReleaseInfo(final String release) {
156144
}
157145
buildNumber = Integer.valueOf(release.substring(start));
158146
} else {
159-
throw new IllegalArgumentException(
160-
"Release muss dem Muster 1[.4[.2[-15]]] entsprechen.");
147+
throw new IllegalArgumentException("Release muss dem Muster 1[.4[.2[-15]]] entsprechen.");
161148
}
162149
}
163150

@@ -198,9 +185,9 @@ public Integer getPatchLevel() {
198185
}
199186

200187
/**
201-
* Gibt das Release für den Menschen lesbar zurück. Teile die nicht
202-
* angegeben sind, werden nicht ausgegeben. Fehlt z.&nbsp;B. die Build
203-
* Number wird diese auch nicht berücksichtigt.
188+
* Gibt das Release für den Menschen lesbar zurück. Teile die nicht angegeben
189+
* sind, werden nicht ausgegeben. Fehlt z.&nbsp;B. die Build Number wird diese
190+
* auch nicht berücksichtigt.
204191
*
205192
* @return ein Text nach dem Muster 1[.4[.2[-15]]].
206193
*/

0 commit comments

Comments
 (0)