From 2fbcf51833ef3b57538447dec92ac14fc49ca6d8 Mon Sep 17 00:00:00 2001 From: Lukas Jungmann Date: Thu, 7 May 2020 14:24:45 +0200 Subject: [PATCH] #17: define JPMS descriptor (#18) * #17: define JPMS descriptor Signed-off-by: Lukas Jungmann * Set base jdk version to 8 Signed-off-by: Lukas Jungmann --- .gitignore | 1 + pom.xml | 67 +++++++++++++++++++++++----------- src/main/java/module-info.java | 23 ++++++++++++ 3 files changed, 69 insertions(+), 22 deletions(-) create mode 100644 src/main/java/module-info.java diff --git a/.gitignore b/.gitignore index ad3efd2..4c537a8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ build/** .idea/** *.iml +/target/ \ No newline at end of file diff --git a/pom.xml b/pom.xml index 9e98e00..22e2cdd 100644 --- a/pom.xml +++ b/pom.xml @@ -56,7 +56,8 @@ - 1.7 + 8 + 9 ${maven.multiModuleProjectDirectory} @@ -72,10 +73,26 @@ + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M4 + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.1 + + ${base.jdk.version} + + module-info.java + + + org.apache.maven.plugins maven-project-info-reports-plugin - 2.9 + 3.0.0 @@ -84,17 +101,33 @@ org.apache.maven.plugins maven-compiler-plugin - 3.6.1 + 3.8.1 - ${jdkVersion} - ${jdkVersion} + ${upper.jdk.version} + + -Xlint:all + + + + base-compile + + compile + + + ${base.jdk.version} + + module-info.java + + + + org.apache.felix maven-bundle-plugin - 2.3.7 + 4.2.1 true @@ -120,13 +153,10 @@ org.apache.maven.plugins maven-jar-plugin - 3.0.2 + 3.1.2 ${project.build.outputDirectory}/META-INF/MANIFEST.MF - - Oracle - @@ -160,7 +190,7 @@ maven-site-plugin - 3.3 + 3.8.2 stage-for-scm-publish @@ -188,12 +218,7 @@ org.apache.maven.plugins maven-source-plugin - 3.0.1 - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8.1 + 3.1.0 org.apache.maven.plugins @@ -213,19 +238,18 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.0.0 aggregate-project-info false index - license - issue-tracking + licenses + issue-management dependency-info scm distribution-management - project-team + team summary @@ -235,7 +259,6 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.10.4 javadoc-only diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java new file mode 100644 index 0000000..dfcde8d --- /dev/null +++ b/src/main/java/module-info.java @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Distribution License v. 1.0, which is available at + * http://www.eclipse.org/org/documents/edl-v10.php. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +module org.glassfish.external.management.api { + + requires java.logging; + requires transitive java.management; + + exports org.glassfish.external.amx; + exports org.glassfish.external.arc; + exports org.glassfish.external.probe.provider; + exports org.glassfish.external.probe.provider.annotations; + exports org.glassfish.external.statistics; + exports org.glassfish.external.statistics.annotations; + exports org.glassfish.external.statistics.impl; +} -- 2.35.1