You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2015/11/03 01:46:43 UTC

[2/3] isis git commit: ISIS-1231: jdeps maven plugin, and docs.

ISIS-1231: jdeps maven plugin, and docs.


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/ed74e64c
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/ed74e64c
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/ed74e64c

Branch: refs/heads/master
Commit: ed74e64c31daf7df045f5c64fafec82bb0795da9
Parents: e6c59e7
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Tue Nov 3 00:40:18 2015 +0000
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Tue Nov 3 00:40:18 2015 +0000

----------------------------------------------------------------------
 .../main/asciidoc/guides/_cg_building-isis.adoc | 22 +++++++++++++++++
 core/pom.xml                                    | 26 ++++++++++++++++++++
 2 files changed, 48 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/ed74e64c/adocs/documentation/src/main/asciidoc/guides/_cg_building-isis.adoc
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/guides/_cg_building-isis.adoc b/adocs/documentation/src/main/asciidoc/guides/_cg_building-isis.adoc
index a3f9d39..26024bb 100644
--- a/adocs/documentation/src/main/asciidoc/guides/_cg_building-isis.adoc
+++ b/adocs/documentation/src/main/asciidoc/guides/_cg_building-isis.adoc
@@ -198,3 +198,25 @@ The first time this runs can take 10~20 minutes to download the NVD data feeds.
 ====
 
 To disable, either run in offline mode (add `-o` or `--offline`) or omit the `owasp` property.
+
+
+
+== Checking for use of internal JDK APIs
+
+Apache Isis configures the link:https://maven.apache.org/plugins-archives/maven-jdeps-plugin-3.0.0/[jdeps maven plugin] to check for any usage of internal JDK APIs.  This is in preparation for Java 9 module system (Jigsaw) which will prevent such usage of APIs.
+
+To check, run:
+
+[source,bash]
+----
+mvn clean install -Djdeps
+----
+
+This will fail the build on any module that currently uses an internal JDK API.
+
+
+[NOTE]
+====
+At the time of writing the `isis-core-schema` module fails the build.
+====
+

http://git-wip-us.apache.org/repos/asf/isis/blob/ed74e64c/core/pom.xml
----------------------------------------------------------------------
diff --git a/core/pom.xml b/core/pom.xml
index 1890c4c..a2e2c24 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -1997,6 +1997,32 @@ ${license.additional-notes}
                 </plugins>
             </build>
         </profile>
+        <profile>
+            <id>jdeps</id>
+            <activation>
+                <property>
+                    <name>jdeps</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-jdeps-plugin</artifactId>
+                        <version>3.0.0</version>
+                        <executions>
+                            <execution>
+                                <id>jdeps-jdkinternals</id>
+                                <goals>
+                                    <goal>jdkinternals</goal>
+                                    <goal>test-jdkinternals</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
 
     <modules>