Skip to content

Commit 3c3430b

Browse files
committed
[UNDERTOW-2000] Properly Jakartize Undertow Components.
This commit is eliminating previous Jakartization effort. It introduces new Jakartization process that: * is based on source code transformation * provides both source and binary maven artifacts * executes test suite also against jakartized components
1 parent 50898f2 commit 3c3430b

File tree

14 files changed

+874
-818
lines changed

14 files changed

+874
-818
lines changed

jakarta/examples/pom.xml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ JBoss, Home of Professional Open Source.
4+
~ Copyright 2021 Red Hat, Inc., and individual contributors
5+
~ as indicated by the @author tags.
6+
~
7+
~ Licensed under the Apache License, Version 2.0 (the "License");
8+
~ you may not use this file except in compliance with the License.
9+
~ You may obtain a copy of the License at
10+
~
11+
~ http://www.apache.org/licenses/LICENSE-2.0
12+
~
13+
~ Unless required by applicable law or agreed to in writing, software
14+
~ distributed under the License is distributed on an "AS IS" BASIS,
15+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
~ See the License for the specific language governing permissions and
17+
~ limitations under the License.
18+
-->
19+
<project xmlns="http://maven.apache.org/POM/4.0.0"
20+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22+
<modelVersion>4.0.0</modelVersion>
23+
24+
<parent>
25+
<groupId>io.undertow</groupId>
26+
<artifactId>undertow-parent-jakarta</artifactId>
27+
<version>2.2.14.Final-SNAPSHOT</version>
28+
<relativePath>../pom.xml</relativePath>
29+
</parent>
30+
31+
<artifactId>undertow-examples-jakarta</artifactId>
32+
<name>Undertow Examples - Jakarta Variant</name>
33+
34+
<properties>
35+
<jakarta.transformer.input.dir>${project.basedir}/../../examples</jakarta.transformer.input.dir>
36+
</properties>
37+
38+
<dependencies>
39+
<dependency>
40+
<groupId>io.undertow</groupId>
41+
<artifactId>undertow-core</artifactId>
42+
</dependency>
43+
<dependency>
44+
<groupId>io.undertow</groupId>
45+
<artifactId>undertow-servlet-jakarta</artifactId>
46+
</dependency>
47+
<dependency>
48+
<groupId>io.undertow</groupId>
49+
<artifactId>undertow-websockets-jsr-jakarta</artifactId>
50+
</dependency>
51+
<dependency>
52+
<groupId>org.jboss.logging</groupId>
53+
<artifactId>jboss-logging-processor</artifactId>
54+
<scope>provided</scope>
55+
</dependency>
56+
<dependency>
57+
<groupId>org.jboss.xnio</groupId>
58+
<artifactId>xnio-nio</artifactId>
59+
</dependency>
60+
<dependency>
61+
<groupId>org.jboss.threads</groupId>
62+
<artifactId>jboss-threads</artifactId>
63+
</dependency>
64+
<dependency>
65+
<groupId>org.jboss.logmanager</groupId>
66+
<artifactId>jboss-logmanager</artifactId>
67+
</dependency>
68+
</dependencies>
69+
70+
<build>
71+
<finalName>undertow-examples</finalName>
72+
<resources>
73+
<resource>
74+
<directory>src/main/java</directory>
75+
<excludes>
76+
<exclude>**/*.java</exclude>
77+
</excludes>
78+
</resource>
79+
<resource>
80+
<directory>src/main/resources</directory>
81+
</resource>
82+
</resources>
83+
<plugins>
84+
<plugin>
85+
<groupId>org.apache.maven.plugins</groupId>
86+
<artifactId>maven-shade-plugin</artifactId>
87+
<executions>
88+
<execution>
89+
<phase>package</phase>
90+
<goals>
91+
<goal>shade</goal>
92+
</goals>
93+
</execution>
94+
</executions>
95+
</plugin>
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-jar-plugin</artifactId>
99+
<configuration>
100+
<archive>
101+
<manifest>
102+
<mainClass>io.undertow.examples.Runner</mainClass>
103+
</manifest>
104+
</archive>
105+
</configuration>
106+
</plugin>
107+
<plugin>
108+
<groupId>org.codehaus.mojo</groupId>
109+
<artifactId>exec-maven-plugin</artifactId>
110+
<version>1.2.1</version>
111+
<configuration>
112+
<executable>java</executable>
113+
<arguments>
114+
<argument>-jar</argument>
115+
<argument>target/${project.build.finalName}.jar</argument>
116+
</arguments>
117+
</configuration>
118+
</plugin>
119+
<plugin>
120+
<groupId>org.wildfly.extras.batavia</groupId>
121+
<artifactId>transformer-tools-mvn</artifactId>
122+
</plugin>
123+
</plugins>
124+
</build>
125+
</project>

jakarta/pom.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ JBoss, Home of Professional Open Source.
4+
~ Copyright 2021 Red Hat, Inc., and individual contributors
5+
~ as indicated by the @author tags.
6+
~
7+
~ Licensed under the Apache License, Version 2.0 (the "License");
8+
~ you may not use this file except in compliance with the License.
9+
~ You may obtain a copy of the License at
10+
~
11+
~ http://www.apache.org/licenses/LICENSE-2.0
12+
~
13+
~ Unless required by applicable law or agreed to in writing, software
14+
~ distributed under the License is distributed on an "AS IS" BASIS,
15+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
~ See the License for the specific language governing permissions and
17+
~ limitations under the License.
18+
-->
19+
<project xmlns="http://maven.apache.org/POM/4.0.0"
20+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22+
<modelVersion>4.0.0</modelVersion>
23+
24+
<parent>
25+
<groupId>io.undertow</groupId>
26+
<artifactId>undertow-parent</artifactId>
27+
<version>2.2.14.Final-SNAPSHOT</version>
28+
<relativePath>../pom.xml</relativePath>
29+
</parent>
30+
31+
<artifactId>undertow-parent-jakarta</artifactId>
32+
<name>Undertow Jakarta Parent</name>
33+
<packaging>pom</packaging>
34+
35+
<modules>
36+
<module>examples</module>
37+
<module>servlet</module>
38+
<module>websockets-jsr</module>
39+
</modules>
40+
41+
</project>

0 commit comments

Comments
 (0)