Skip to content

Commit

Permalink
JPMS for Jetty modules
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Nesen <maxim.nesen@oracle.com>
  • Loading branch information
senivam committed Dec 22, 2023
1 parent 8332116 commit 2471e24
Show file tree
Hide file tree
Showing 15 changed files with 398 additions and 2 deletions.
31 changes: 31 additions & 0 deletions connectors/jetty-http2-connector/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright (c) 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
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/

module org.glassfish.jersey.jetty.http2.connector {

requires jakarta.ws.rs;

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

requires org.glassfish.jersey.core.common;
requires org.glassfish.jersey.core.client;
requires org.glassfish.jersey.jetty.connector;

exports org.glassfish.jersey.jetty.http2.connector;
opens org.glassfish.jersey.jetty.http2.connector;
}
41 changes: 41 additions & 0 deletions connectors/jetty-http2-connector/src/test/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright (c) 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
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/

module org.glassfish.jersey.jetty.http2.connector {

requires jakarta.inject;
requires jakarta.ws.rs;
requires jakarta.xml.bind;

requires java.logging;

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

requires org.glassfish.jersey.core.common;
requires org.glassfish.jersey.core.client;
requires org.glassfish.jersey.core.server;
requires org.glassfish.jersey.jetty.connector;

requires org.junit.jupiter.api;
requires org.hamcrest;

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

exports org.glassfish.jersey.jetty.http2.connector;
opens org.glassfish.jersey.jetty.http2.connector;
}
40 changes: 40 additions & 0 deletions connectors/jetty11-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,46 @@
<artifactId>jaxb-osgi</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-->
</dependencies>

<build>
Expand Down
32 changes: 32 additions & 0 deletions connectors/jetty11-connector/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright (c) 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
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/

module org.glassfish.jersey.jetty11.connector {
requires java.logging;

requires jakarta.ws.rs;

requires org.eclipse.jetty.client;
requires org.eclipse.jetty.http;
requires org.eclipse.jetty.io;
requires org.eclipse.jetty.util;

requires org.glassfish.jersey.core.common;
requires org.glassfish.jersey.core.client;

exports org.glassfish.jersey.jetty.connector;
opens org.glassfish.jersey.jetty.connector;
}
48 changes: 48 additions & 0 deletions connectors/jetty11-connector/src/test/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright (c) 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
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/

module org.glassfish.jersey.jetty11.connector {
requires java.logging;

requires jakarta.inject;
requires jakarta.ws.rs;

requires org.eclipse.jetty.client;
// requires org.eclipse.jetty.server;
requires org.eclipse.jetty.http;
requires org.eclipse.jetty.io;
requires org.eclipse.jetty.util;

requires org.junit.jupiter.api;
requires org.junit.jupiter.engine;
requires org.hamcrest;

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

requires jakarta.xml.bind;

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

requires org.glassfish.jersey.core.common;
requires org.glassfish.jersey.core.client;
requires org.glassfish.jersey.core.server;

exports org.glassfish.jersey.jetty.connector;
opens org.glassfish.jersey.jetty.connector;
}
30 changes: 30 additions & 0 deletions containers/jetty-http2/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* 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
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/

module org.glassfish.jersey.container.jetty.http2 {

requires jakarta.ws.rs;

requires org.eclipse.jetty.http2.server;
requires org.eclipse.jetty.alpn.server;

requires org.glassfish.jersey.core.common;
requires org.glassfish.jersey.core.server;
requires org.glassfish.jersey.container.jetty.http;

exports org.glassfish.jersey.jetty.http2;
opens org.glassfish.jersey.jetty.http2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import org.glassfish.jersey.internal.util.JdkVersion;
import org.glassfish.jersey.jetty.JettyHttpContainer;
import org.glassfish.jersey.jetty.JettyHttpContainerProvider;
import org.glassfish.jersey.jetty.internal.LocalizationMessages;
import org.glassfish.jersey.server.spi.ContainerProvider;

import jakarta.ws.rs.ProcessingException;
Expand Down
34 changes: 34 additions & 0 deletions containers/jetty-http2/src/test/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* 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
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/

module org.glassfish.jersey.container.jetty.http2 {
requires java.logging;

requires jakarta.ws.rs;

requires org.eclipse.jetty.http2.server;
requires org.eclipse.jetty.alpn.server;

requires org.glassfish.jersey.core.common;
requires org.glassfish.jersey.core.server;
requires org.glassfish.jersey.container.jetty.http;

requires org.junit.jupiter.api;
requires org.hamcrest;

exports org.glassfish.jersey.jetty.http2;
opens org.glassfish.jersey.jetty.http2;
}
1 change: 1 addition & 0 deletions core-client/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
org.glassfish.jersey.apache.connector,
org.glassfish.jersey.netty.connector,
org.glassfish.jersey.grizzly.connector,
org.glassfish.jersey.jetty11.connector,
org.glassfish.jersey.jetty.connector;

exports org.glassfish.jersey.client.innate.http to
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright (c) 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
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/

module org.glassfish.jersey.tests.framework.provider.jetty.http2 {
requires java.logging;

requires jakarta.servlet;
requires jakarta.ws.rs;

requires org.eclipse.jetty.server;

requires org.glassfish.jersey.tests.framework.core;
requires org.glassfish.jersey.core.common;
requires org.glassfish.jersey.core.client;
requires org.glassfish.jersey.container.jetty.http2;

exports org.glassfish.jersey.test.jetty.http2;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Copyright (c) 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
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/

module org.glassfish.jersey.tests.framework.provider.jetty.http2 {
requires java.logging;

requires jakarta.ws.rs;

requires org.eclipse.jetty.server;

requires org.glassfish.jersey.tests.framework.core;
requires org.glassfish.jersey.core.common;
requires org.glassfish.jersey.core.client;
requires org.glassfish.jersey.core.server;
requires org.glassfish.jersey.container.jetty.http;
requires org.glassfish.jersey.container.jetty.http2;
requires org.glassfish.jersey.inject.hk2;

exports org.glassfish.jersey.test.jetty.http2;

opens org.glassfish.jersey.test.jetty.http2;

requires org.junit.jupiter.api;
requires org.hamcrest;
}
31 changes: 31 additions & 0 deletions test-framework/providers/jetty/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright (c) 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
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/

module org.glassfish.jersey.tests.framework.provider.jetty {
requires java.logging;

// requires jakarta.servlet;
requires jakarta.ws.rs;

requires org.eclipse.jetty.server;

requires org.glassfish.jersey.tests.framework.core;
requires org.glassfish.jersey.core.common;
requires org.glassfish.jersey.core.client;
requires org.glassfish.jersey.container.jetty.http;

exports org.glassfish.jersey.test.jetty;
}
Loading

0 comments on commit 2471e24

Please sign in to comment.