Skip to content

Commit c0269cb

Browse files
committed
upgrade to jakarta.xml.bind 4.0.0
1 parent a86a9d7 commit c0269cb

File tree

7 files changed

+17
-63
lines changed

7 files changed

+17
-63
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: java
22

33
jdk:
4-
- openjdk8
54
- oraclejdk11
65
- openjdk11
76

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ To use latest release based on **Java Time API** and **Threeten-Extra library**
3131
```
3232

3333
## 0.6 Branch planned
34-
Planning to replace usage of JAXB with JiBX/XStream
34+
35+
moved to jakarta.xml.* instead of javax.xml
3536

3637
## License
3738

pom.xml

Lines changed: 5 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>de.jollyday</groupId>
44
<artifactId>jollyday</artifactId>
55
<name>Jollyday</name>
6-
<version>0.5.11-SNAPSHOT</version>
6+
<version>0.6.0-SNAPSHOT</version>
77
<description>
88
This API determines the holidays for a given year, country/name and eventually state/region. The holiday data is
99
stored in XML files (one for each country) and will be read from the classpath. You can provide your own holiday
@@ -101,7 +101,7 @@
101101
<plugin>
102102
<groupId>com.github.davidmoten</groupId>
103103
<artifactId>jax-maven-plugin</artifactId>
104-
<version>0.1.5</version>
104+
<version>0.2</version>
105105
</plugin>
106106
<plugin>
107107
<groupId>org.apache.maven.plugins</groupId>
@@ -206,7 +206,7 @@
206206
<argument>-d</argument>
207207
<argument>${project.build.directory}/generated-sources/jaxb</argument>
208208
<argument>-target</argument>
209-
<argument>2.1</argument>
209+
<argument>3.0</argument>
210210
<argument>-p</argument>
211211
<argument>de.jollyday.config</argument>
212212
<argument>${project.basedir}/src/main/xsd/Holiday.xsd</argument>
@@ -337,31 +337,6 @@
337337
</plugins>
338338
</build>
339339
</profile>
340-
<profile>
341-
<id>jdk9</id>
342-
<activation>
343-
<jdk>[9,)</jdk>
344-
</activation>
345-
<build>
346-
<plugins>
347-
<plugin>
348-
<groupId>org.apache.maven.plugins</groupId>
349-
<artifactId>maven-surefire-plugin</artifactId>
350-
<configuration>
351-
<argLine>@{argLine}
352-
--add-opens de.jollyday/de.jollyday.config=java.xml.bind
353-
--add-opens de.jollyday/de.jollyday.configuration=ALL-UNNAMED
354-
--add-opens de.jollyday/de.jollyday.datasource.impl=ALL-UNNAMED
355-
--add-opens de.jollyday/de.jollyday.util=ALL-UNNAMED
356-
--add-opens de.jollyday/holidays=ALL-UNNAMED</argLine>
357-
<additionalClasspathElements>
358-
<additionalClasspathElement>${project.basedir}/src/main/resources</additionalClasspathElement>
359-
</additionalClasspathElements>
360-
</configuration>
361-
</plugin>
362-
</plugins>
363-
</build>
364-
</profile>
365340
<profile>
366341
<id>jdk11</id>
367342
<activation>
@@ -384,37 +359,15 @@
384359
<dependency>
385360
<groupId>jakarta.xml.bind</groupId>
386361
<artifactId>jakarta.xml.bind-api</artifactId>
387-
<version>2.3.3</version>
362+
<version>4.0.0</version>
388363
</dependency>
389364
<dependency>
390365
<groupId>org.glassfish.jaxb</groupId>
391366
<artifactId>jaxb-runtime</artifactId>
392-
<version>2.3.4</version>
367+
<version>4.0.1</version>
393368
</dependency>
394369
</dependencies>
395370
</profile>
396-
<profile>
397-
<id>jdk1</id>
398-
<activation>
399-
<jdk>(,1.8]</jdk>
400-
</activation>
401-
<build>
402-
<plugins>
403-
<plugin>
404-
<groupId>org.apache.maven.plugins</groupId>
405-
<artifactId>maven-compiler-plugin</artifactId>
406-
<version>3.8.0</version>
407-
<configuration>
408-
<excludes>
409-
<exclude>module-info.java</exclude>
410-
</excludes>
411-
<source>1.8</source>
412-
<target>1.8</target>
413-
</configuration>
414-
</plugin>
415-
</plugins>
416-
</build>
417-
</profile>
418371
</profiles>
419372
<dependencies>
420373
<dependency>

src/main/java/de/jollyday/util/XMLUtil.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
import de.jollyday.config.ObjectFactory;
2525
import de.jollyday.config.Weekday;
2626

27-
import javax.xml.bind.JAXBContext;
28-
import javax.xml.bind.JAXBElement;
29-
import javax.xml.bind.JAXBException;
30-
import javax.xml.bind.Unmarshaller;
27+
import jakarta.xml.bind.JAXBContext;
28+
import jakarta.xml.bind.JAXBElement;
29+
import jakarta.xml.bind.JAXBException;
30+
import jakarta.xml.bind.Unmarshaller;
3131
import java.io.InputStream;
3232
import java.time.DayOfWeek;
3333
import java.util.logging.Logger;

src/main/java/module-info.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module de.jollyday {
22
requires java.logging;
3-
requires java.xml.bind;
3+
requires jakarta.xml.bind;
4+
opens de.jollyday.config to jakarta.xml.bind;
45
requires java.desktop;
56

67
requires org.threeten.extra;
File renamed without changes.

src/test/java/de/jollyday/util/XMLUtilTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
import org.mockito.Mock;
2323
import org.mockito.junit.jupiter.MockitoExtension;
2424

25-
import javax.xml.bind.JAXBContext;
26-
import javax.xml.bind.JAXBElement;
27-
import javax.xml.bind.JAXBException;
28-
import javax.xml.bind.Unmarshaller;
25+
import jakarta.xml.bind.JAXBContext;
26+
import jakarta.xml.bind.JAXBElement;
27+
import jakarta.xml.bind.JAXBException;
28+
import jakarta.xml.bind.Unmarshaller;
2929
import java.io.IOException;
3030
import java.io.InputStream;
3131

0 commit comments

Comments
 (0)