Skip to content

Commit

Permalink
Merge pull request #141 from hussainnm/add-modules
Browse files Browse the repository at this point in the history
Add module-info.java
  • Loading branch information
tkburroughs authored Apr 27, 2022
2 parents ed9e84e + 21a0a5a commit c18a21e
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 9 deletions.
37 changes: 28 additions & 9 deletions api/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2012, 2021 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,7 +22,7 @@
<parent>
<groupId>org.eclipse.ee4j</groupId>
<artifactId>project</artifactId>
<version>1.0.6</version>
<version>1.0.7</version>
<relativePath />
</parent>

Expand All @@ -40,7 +40,7 @@
<maven.compiler.target>1.8</maven.compiler.target>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<spec-version-maven-plugin.version>2.1</spec-version-maven-plugin.version>
<maven-bundle-plugin.version>4.2.1</maven-bundle-plugin.version>
<maven-bundle-plugin.version>5.1.2</maven-bundle-plugin.version>
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
Expand Down Expand Up @@ -190,10 +190,29 @@
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
</configuration>
</execution>
<execution>
<id>compile-module-info</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<release>9</release>
<includes>
<include>module-info.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.glassfish.build</groupId>
Expand Down Expand Up @@ -373,8 +392,8 @@
<version>3.5.4</version>
</requireMavenVersion>
<requireJavaVersion>
<version>[1.8.0,)</version>
<message>You need JDK8 or higher</message>
<version>[9,)</version>
<message>You need JDK 9 or higher</message>
</requireJavaVersion>
</rules>
</configuration>
Expand Down
27 changes: 27 additions & 0 deletions api/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2021 Contributors to the Eclipse Foundation
*
* 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
*/
/**
* Defines the modules for jakarta.ejb
*/
module jakarta.ejb {
requires java.rmi;
requires java.naming;
requires transitive jakarta.transaction;

exports jakarta.ejb;
exports jakarta.ejb.embeddable;
exports jakarta.ejb.spi;
}

0 comments on commit c18a21e

Please sign in to comment.