omegat icon indicating copy to clipboard operation
omegat copied to clipboard

[6.2]feat: bump jaxb to 4 and dynamic generate code

Open miurahr opened this issue 6 months ago • 2 comments

Java 9 and later drops JAXB from Java runtime. JAXB standard is now version 4 but OmegaT depends version 2 which is bundled version of Java 8.

OmegaT 6.1.0_beta and later moves to Java 11, so we can update JAXB 4.

There is a package jakarta.xml.bind in JAXB 4 instead of javax.xml.bind in JAXB 2, so we need to modify source code.

Pull request type

  • Feature enhancement -> [enhancement]
  • Build and release changes -> [build/release]

Which ticket is resolved?

  • Update JAXB code generator to 4.0.x
  • https://sourceforge.net/p/omegat/feature-requests/1761/

What does this PR change?

  • Drop jaxb generated files from repository

  • Update task dependency to use generated code

  • Tweak JAXB generation code difference; filters.getFilters() -> getFilter()

  • Tweak JAXB api package from javax.xml.* to jakarta.xml.*

  • Bump [email protected] which based on JAXB 4

  • Update javax.xml.bind:jaxb.xml.bind-api:2.0.5 to jakarta.xml.bind:jakarta.xml.bind-api:4.0.2

  • Update org.glassfish.jaxb:jaxb-xjc:2.3.1 to org.glassfish.jaxb:jaxb-xjc:4.0.5

  • Update org.glassfish.jaxb:jaxb-runtime:2.3.0 to org.glassfish.jaxb:jaxb-runtime:4.0.5

  • Update com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.16.1 to com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:2.16.1

Other information

miurahr avatar Aug 29 '24 00:08 miurahr