Skip to content

Commit

Permalink
#1099 Upgrade from Java EE 7 to Jakarta EE 8
Browse files Browse the repository at this point in the history
use Jakarta dependencies
  • Loading branch information
oliverlietz committed Dec 14, 2023
1 parent 4488f9a commit 6a75516
Show file tree
Hide file tree
Showing 35 changed files with 105 additions and 96 deletions.
4 changes: 2 additions & 2 deletions containers/pax-exam-container-forked/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions containers/pax-exam-container-karaf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
8 changes: 4 additions & 4 deletions containers/pax-exam-container-openwebbeans/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions containers/pax-exam-container-tomcat/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
</dependency>

<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<scope>test</scope>
</dependency>

Expand Down
8 changes: 4 additions & 4 deletions containers/pax-exam-container-weld/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions core/pax-exam-inject/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<artifactId>pax-swissbox-framework</artifactId>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
5 changes: 2 additions & 3 deletions core/pax-exam-invoker-jaxrs2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@
</dependency>

<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0</version>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions core/pax-exam-link-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
classpath:jakarta.inject-api.jar

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mvn:jakarta.inject/jakarta.inject-api/${dependency.atinject.version}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private static Option[] defaultTestSystemOptions() {
START_LEVEL_SYSTEM_BUNDLES),
url("link:classpath:META-INF/links/org.ops4j.pax.swissbox.tracker.link").startLevel(
START_LEVEL_SYSTEM_BUNDLES),
url("link:classpath:META-INF/links/org.apache.geronimo.specs.atinject.link")
url("link:classpath:META-INF/links/jakarta.inject-api.link")
.startLevel(START_LEVEL_SYSTEM_BUNDLES) };
}

Expand Down
2 changes: 1 addition & 1 deletion core/pax-exam/src/main/java/org/ops4j/pax/exam/Info.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public static String getPaxTinybundlesVersion() {
}

/**
* Discovers the Geronimo Atinject version. If version cannot be determined returns an empty string.
* Discovers the Jakarta (javax) Inject version. If version cannot be determined returns an empty string.
*
* @return Pax Tinybundles version
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class WarProbeOption implements Option {
public static final String[] DEFAULT_CLASS_PATH_EXCLUDES = { //
".cp", //
"bndlib", //
"geronimo-atinject_", //
"jakarta.inject-api", //
"geronimo-ejb_", //
"geronimo-jcdi_", //
"geronimo-jpa_", //
Expand Down
6 changes: 3 additions & 3 deletions drivers/pax-exam-testng-servlet-bridge/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0</version>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
Expand Down
2 changes: 1 addition & 1 deletion features/src/main/resources/features.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<bundle>mvn:org.ops4j.pax.exam/pax-exam/${project.version}</bundle>
<bundle>mvn:org.ops4j.pax.exam/pax-exam-extender-service/${project.version}</bundle>
<bundle>mvn:org.ops4j.pax.exam/pax-exam-container-rbc/${project.version}</bundle>
<bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-atinject_1.0_spec/1.0</bundle>
<bundle dependency="true">mvn:jakarta.inject/jakarta.inject-api/1.0.5</bundle>
<bundle>mvn:org.ops4j.pax.exam/pax-exam-inject/${project.version}</bundle>
</feature>
<feature name="exam" version="${project.version}">
Expand Down
16 changes: 0 additions & 16 deletions itest/cdi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@
<artifactId>weld-se-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</profile>

Expand Down Expand Up @@ -132,23 +127,12 @@
<artifactId>openwebbeans-impl</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>

Expand Down
8 changes: 4 additions & 4 deletions itest/cdi/src/it/regression-cdi-invalid/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
8 changes: 4 additions & 4 deletions itest/cdi/src/it/regression-cdi-probe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<scope>test</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions itest/cdi/src/it/regression-cdi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
</dependency>

<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<scope>test</scope>
</dependency>

Expand Down
8 changes: 4 additions & 4 deletions itest/cdi/src/it/regression-deltaspike/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
8 changes: 4 additions & 4 deletions itest/javaee/src/it/regression-javaee-data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<scope>test</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions itest/javaee/src/it/regression-javaee-moviefun/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions itest/javaee/src/it/regression-javaee-userprobe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions itest/javaee/src/it/regression-javaee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions itest/karaf/src/it/regression-karaf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions itest/osgi/src/it/regression-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions itest/osgi/src/it/regression-multi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions itest/osgi/src/it/regression-plumbing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>provided</scope>
</dependency>

Expand Down
8 changes: 4 additions & 4 deletions itest/web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@
</dependency>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-interceptor_1.1_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>test</scope>
</dependency>

Expand All @@ -193,8 +193,8 @@

<dependencies>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
</dependency>

</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions itest/web/src/it/regression-web-spring-userprobe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<dependencies>

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<scope>test</scope>
</dependency>

Expand Down
Loading

0 comments on commit 6a75516

Please sign in to comment.