Skip to content

Commit

Permalink
feat(project): support XML Binding 4 (camunda#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmetzke authored Mar 7, 2023
1 parent 6a964e6 commit d92d640
Show file tree
Hide file tree
Showing 4 changed files with 371 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spin/.ci.cambpm
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@Library("camunda-ci") _
buildMavenAndDeployToMavenCentral([
jdk:8,
jdk:11,
mvn:3.5,
additionalMvnGoals:'javadoc:javadoc',
licenseCheck:true,
publishZipArtifactToCamundaOrg:true,
extraJdks: [
'jdk-11-latest',
'jdk-8-latest',
'jdk-17-latest',
'openjdk-jdk-8-latest',
'openjdk-jdk-11-latest',
Expand Down
6 changes: 6 additions & 0 deletions spin/bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
<artifactId>camunda-spin-dataformat-xml-dom</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-xml-dom-jakarta</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
354 changes: 354 additions & 0 deletions spin/dataformat-xml-dom-jakarta/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,354 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-root</artifactId>
<version>1.19.0-SNAPSHOT</version>
</parent>

<artifactId>camunda-spin-dataformat-xml-dom-jakarta</artifactId>
<name>camunda Spin - DOM XML data format Jakarta</name>

<properties>
<xml.bind-api.version>4.0.0</xml.bind-api.version>
<jaxb-runtime.version>4.0.1</jaxb-runtime.version>
</properties>

<dependencies>
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-core</artifactId>
</dependency>

<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-logging</artifactId>
</dependency>

<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-utils</artifactId>
</dependency>

<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>${jaxb-runtime.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.python</groupId>
<artifactId>jython</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js-scriptengine</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito2</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-core</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>

<profiles>
<profile>
<id>jdk-15-and-onwards</id>
<activation>
<jdk>[15,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes combine.children="append">
<exclude>**/nashorn/**</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>jdk-16-and-onwards</id>
<activation>
<jdk>[16,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>
-XX:MetaspaceSize=128m
</argLine>
<excludes combine.children="append">
<exclude>**/nashorn/**</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>sources</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/generated-sources/jakarta</outputDirectory>
<resources>
<resource>
<directory>${basedir}/../dataformat-xml-dom/src/main/java</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>resources</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/generated-resources/jakarta</outputDirectory>
<resources>
<resource>
<directory>${basedir}/../dataformat-xml-dom/src/main/resources</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>test-sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/generated-test-sources/jakarta</outputDirectory>
<resources>
<resource>
<directory>${basedir}/../dataformat-xml-dom/src/test/java</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>test-resources</id>
<phase>generate-test-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/generated-test-resources/jakarta</outputDirectory>
<resources>
<resource>
<directory>${basedir}/../dataformat-xml-dom/src/test/resources</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.transformer</groupId>
<artifactId>transformer-maven-plugin</artifactId>
<version>0.5.0</version>
<configuration>
<rules>
<jakartaDefaults>true</jakartaDefaults>
</rules>
</configuration>
<executions>
<execution>
<id>transform-jakarta-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>transform</goal>
</goals>
<configuration>
<transformDirectory>${project.build.directory}/generated-sources/jakarta</transformDirectory>
</configuration>
</execution>
<execution>
<id>transform-jakarta-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>transform</goal>
</goals>
<configuration>
<transformDirectory>${project.build.directory}/generated-resources/jakarta</transformDirectory>
</configuration>
</execution>
<execution>
<id>transform-jakarta-test-sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>transform</goal>
</goals>
<configuration>
<transformDirectory>${project.build.directory}/generated-test-sources/jakarta</transformDirectory>
</configuration>
</execution>
<execution>
<id>transform-jakarta-test-resources</id>
<phase>generate-test-resources</phase>
<goals>
<goal>transform</goal>
</goals>
<configuration>
<transformDirectory>${project.build.directory}/generated-test-resources/jakarta</transformDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>add-jakarta-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${basedir}/target/generated-sources/jakarta</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-jakarta-resource</id>
<phase>generate-resources</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource><directory>${basedir}/target/generated-resources/jakarta</directory></resource>
</resources>
</configuration>
</execution>
<execution>
<id>add-jakarta-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>${basedir}/target/generated-test-sources/jakarta</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-jakarta-test-resource</id>
<phase>generate-test-resources</phase>
<goals>
<goal>add-test-resource</goal>
</goals>
<configuration>
<resources>
<resource><directory>${basedir}/target/generated-test-resources/jakarta</directory></resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
9 changes: 9 additions & 0 deletions spin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,15 @@
</plugins>
</build>
</profile>
<profile>
<id>jdk11</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<modules>
<module>dataformat-xml-dom-jakarta</module>
</modules>
</profile>
</profiles>

<scm>
Expand Down

0 comments on commit d92d640

Please sign in to comment.