Skip to content

Commit

Permalink
JPMS adjustments to the actual 3.1
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Nesen <[email protected]>
  • Loading branch information
senivam committed Nov 27, 2023
1 parent 7aff746 commit 2ff4b3c
Show file tree
Hide file tree
Showing 52 changed files with 612 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module ${package}.module {
requires jakarta.ws.rs;

requires grizzly.http.server;
requires org.glassfish.grizzly.http.server;

requires org.glassfish.jersey.core.server;
requires org.glassfish.jersey.container.grizzly2.http;
Expand Down
35 changes: 35 additions & 0 deletions connectors/apache-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,41 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<!--required by Grizzly* modules-->
<dependency>
<groupId>org.glassfish.pfl</groupId>
<artifactId>pfl-tf</artifactId>
<version>${pfl.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.gmbal</groupId>
<artifactId>gmbal</artifactId>
<version>${gmbal.version}</version>
<exclusions>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-analysis</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--End of required by Grizzly* modules-->
</dependencies>

<build>
Expand Down
5 changes: 5 additions & 0 deletions connectors/apache-connector/src/test/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@

requires org.junit.jupiter.api;
requires org.junit.jupiter.engine;
requires org.junit.platform.commons;

exports org.glassfish.jersey.apache.connector;
opens org.glassfish.jersey.apache.connector;
// required by Grizzly* modules
requires pfl.tf;
requires gmbal;
// end of required by Grizzly* modules
}
31 changes: 31 additions & 0 deletions connectors/grizzly-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,37 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<!--required by Grizzly* modules-->
<dependency>
<groupId>org.glassfish.pfl</groupId>
<artifactId>pfl-tf</artifactId>
<version>${pfl.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.gmbal</groupId>
<artifactId>gmbal</artifactId>
<version>${gmbal.version}</version>
<exclusions>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-analysis</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--End of required by Grizzly* modules-->
</dependencies>

<build>
Expand Down
4 changes: 2 additions & 2 deletions connectors/grizzly-connector/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2023 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand All @@ -19,7 +19,7 @@

requires jakarta.ws.rs;

requires grizzly.framework;
requires org.glassfish.grizzly;
requires grizzly.http.client;

requires org.glassfish.jersey.core.common;
Expand Down
9 changes: 6 additions & 3 deletions connectors/grizzly-connector/src/test/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@

requires jakarta.ws.rs;

requires grizzly.framework;
requires org.glassfish.grizzly;
requires grizzly.http.client;

// requires grizzly.http.server;
requires grizzly.http;
requires org.glassfish.grizzly.http;
// required by Grizzly* modules
requires pfl.tf;
requires gmbal;
// end of required by Grizzly* modules

requires org.glassfish.jersey.core.common;
requires org.glassfish.jersey.core.client;
Expand Down
27 changes: 27 additions & 0 deletions connectors/jdk-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,33 @@
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<!--required by Grizzly* modules-->
<dependency>
<groupId>org.glassfish.pfl</groupId>
<artifactId>pfl-tf</artifactId>
<version>${pfl.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.gmbal</groupId>
<artifactId>gmbal</artifactId>
<version>${gmbal.version}</version>
<exclusions>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-analysis</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--End of required by Grizzly* modules-->
</dependencies>

<build>
Expand Down
8 changes: 8 additions & 0 deletions connectors/jdk-connector/src/test/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
requires org.junit.jupiter.api;
requires org.junit.jupiter.engine;

requires org.glassfish.grizzly.http;
requires org.glassfish.grizzly.http.server;

// required by Grizzly* modules
requires pfl.tf;
requires gmbal;
// end of required by Grizzly* modules

requires org.glassfish.jersey.tests.framework.core;
requires org.glassfish.jersey.tests.framework.provider.grizzly;

Expand Down
41 changes: 40 additions & 1 deletion containers/grizzly2-http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,46 @@
<artifactId>grizzly-npn-api</artifactId>
<scope>test</scope>
</dependency>

<!--required by Grizzly* modules-->
<dependency>
<groupId>org.glassfish.pfl</groupId>
<artifactId>pfl-tf</artifactId>
<version>${pfl.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.gmbal</groupId>
<artifactId>gmbal</artifactId>
<version>${gmbal.version}</version>
<exclusions>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-analysis</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>${asm.version}</version>
</dependency>
<!--End of required by Grizzly* modules-->
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-client</artifactId>
Expand Down
8 changes: 4 additions & 4 deletions containers/grizzly2-http/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2023 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand All @@ -22,9 +22,9 @@
requires jakarta.inject;
requires static jakarta.xml.bind;

requires grizzly.framework;
requires grizzly.http.server;
requires grizzly.http;
requires org.glassfish.grizzly;
requires org.glassfish.grizzly.http.server;
requires org.glassfish.grizzly.http;

requires org.glassfish.jersey.core.common;
requires org.glassfish.jersey.core.server;
Expand Down
14 changes: 10 additions & 4 deletions containers/grizzly2-http/src/test/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
requires jakarta.ws.rs;

requires org.eclipse.jetty.http2.client;
requires org.eclipse.jetty.http2.http.client.transport;
requires org.eclipse.jetty.http2.client.transport;

requires org.bouncycastle.provider;
requires org.bouncycastle.pkix;
Expand All @@ -32,9 +32,15 @@
requires org.junit.jupiter.api;
requires org.junit.jupiter.engine;

requires grizzly.http.server;
requires grizzly.http2;
requires grizzly.framework;
requires org.glassfish.grizzly.http.server;
requires org.glassfish.grizzly;
requires org.glassfish.grizzly.http;
requires org.glassfish.grizzly.http2;

// required by Grizzly* modules
requires pfl.tf;
requires gmbal;
// end of required by Grizzly* modules

requires org.glassfish.hk2.api;
requires org.glassfish.hk2.locator;
Expand Down
6 changes: 3 additions & 3 deletions containers/grizzly2-servlet/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2023 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand All @@ -18,8 +18,8 @@
requires jakarta.ws.rs;
requires jakarta.servlet;

requires grizzly.http.servlet;
requires grizzly.http.server;
requires org.glassfish.grizzly.servlet;
requires org.glassfish.grizzly.http.server;

requires org.glassfish.jersey.core.common;
requires org.glassfish.jersey.container.servlet.core;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,4 +312,4 @@ public void close() throws IOException {
// do not close - let the servlet container close the stream
}
}
}
}
1 change: 1 addition & 0 deletions containers/jetty-http/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

requires org.eclipse.jetty.http;
requires org.eclipse.jetty.server;
requires org.eclipse.jetty.security;
requires org.eclipse.jetty.util;

requires org.glassfish.jersey.core.common;
Expand Down
2 changes: 2 additions & 0 deletions core-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
<artifactId>jakarta.inject-api</artifactId>
</dependency>

<!--
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
Expand All @@ -129,6 +130,7 @@
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
</dependency>
-->

<dependency>
<!-- not to warn about missing activation -->
Expand Down
3 changes: 2 additions & 1 deletion core-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,13 @@
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
</dependency>
<!--
<dependency>
<groupId>org.eclipse.angus</groupId>
<artifactId>angus-activation</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>
</dependency> -->
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
Expand Down
1 change: 1 addition & 0 deletions core-common/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

// Exports rather all, which corresponds to previous state without module-info
exports org.glassfish.jersey;
exports org.glassfish.jersey.http;
exports org.glassfish.jersey.internal;
exports org.glassfish.jersey.internal.config;
exports org.glassfish.jersey.internal.guava;
Expand Down
14 changes: 14 additions & 0 deletions examples/groovy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@
<artifactId>groovy-all</artifactId>
<type>pom</type>
<version>${groovy.version}</version>
<exclusions>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.test-framework.providers</groupId>
Expand Down
Loading

0 comments on commit 2ff4b3c

Please sign in to comment.