You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2019/01/07 08:16:56 UTC

[sling-org-apache-sling-api] branch master updated: Enforce usage of JDK9+ due to javadoc bugs with older JDKs (https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8206092)

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git


The following commit(s) were added to refs/heads/master by this push:
     new 39a1326  Enforce usage of JDK9+ due to javadoc bugs with older JDKs (https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8206092)
39a1326 is described below

commit 39a13263d46b8ffe4a749e09805e855ca80a0640
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Mon Jan 7 09:16:49 2019 +0100

    Enforce usage of JDK9+ due to javadoc bugs with older JDKs
    (https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8206092)
---
 pom.xml | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/pom.xml b/pom.xml
index 3ed89b7..fbf9dd9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -153,4 +153,39 @@
             </plugin>
         </plugins>
     </build>
+    <profiles>
+        <profile>
+            <!-- enforce usage of JDK9 or above due to https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8206092 -->
+            <activation>
+                <os>
+                    <family>mac</family>
+                </os>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-enforcer-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>enforce-jdk9-for-javadoc-on-mac</id>
+                                <goals>
+                                    <goal>enforce</goal>
+                                </goals>
+                                <configuration>
+                                    <rules>
+                                        <requireJavaVersion>
+                                            <message>
+                                                You must use JDK 9 or newer due to issues with javadoc in older JDKs, for details check https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8206092
+                                            </message>
+                                            <version>9</version>
+                                        </requireJavaVersion>
+                                    </rules>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>