You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2019/07/27 19:19:38 UTC
[maven-javadoc-plugin] branch master updated: As of JDK 13,
the com.sun.javadoc API is no longer supported.
This is an automated email from the ASF dual-hosted git repository.
rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-javadoc-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 6f72d47 As of JDK 13, the com.sun.javadoc API is no longer supported.
6f72d47 is described below
commit 6f72d47d5da6b77f3040ba8a10fac93980d13248
Author: rfscholte <rf...@apache.org>
AuthorDate: Sat Jul 27 20:51:17 2019 +0200
As of JDK 13, the com.sun.javadoc API is no longer supported.
---
src/it/projects/MJAVADOC-427/verify.groovy | 2 +-
.../invoker.properties | 4 +++-
.../invoker.properties | 3 ++-
.../additional-dependencies/invoker.properties | 3 ++-
.../maven/plugins/javadoc/JavadocReportTest.java | 18 +++++++++++++++---
5 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/src/it/projects/MJAVADOC-427/verify.groovy b/src/it/projects/MJAVADOC-427/verify.groovy
index 035c4d6..f3ad4b0 100644
--- a/src/it/projects/MJAVADOC-427/verify.groovy
+++ b/src/it/projects/MJAVADOC-427/verify.groovy
@@ -23,4 +23,4 @@ assert file.exists()
// assert that javadoc of class correctly contains link, just like method details
assert file.text =~ /Link to slf4j <a href=".*?".*?><code>LoggerFactory<\/code><\/a>/
-assert file.text =~ /<pre[^<]*>public.*?<a href=".*?".*?>LoggerFactory<\/a>.*?getLoggerFactory.*?\(\)<\/pre>/
+assert file.text =~ /public.*?<a href=".*?".*?>LoggerFactory<\/a>.*?getLoggerFactory.*?\(\)/
diff --git a/src/it/projects/MJAVADOC-514_3rdparty-doclettags/invoker.properties b/src/it/projects/MJAVADOC-514_3rdparty-doclettags/invoker.properties
index 22c9049..50fc310 100644
--- a/src/it/projects/MJAVADOC-514_3rdparty-doclettags/invoker.properties
+++ b/src/it/projects/MJAVADOC-514_3rdparty-doclettags/invoker.properties
@@ -15,4 +15,6 @@
# specific language governing permissions and limitations
# under the License.
-invoker.goals=clean javadoc:javadoc
+invoker.goals=javadoc:javadoc
+# As of JDK 13, the com.sun.javadoc API is no longer supported.
+invoker.java.version = 13-
diff --git a/src/it/projects/additional-dependencies-non-aggregate/invoker.properties b/src/it/projects/additional-dependencies-non-aggregate/invoker.properties
index eca1aa7..a78a9f0 100644
--- a/src/it/projects/additional-dependencies-non-aggregate/invoker.properties
+++ b/src/it/projects/additional-dependencies-non-aggregate/invoker.properties
@@ -16,4 +16,5 @@
# under the License.
invoker.goals=clean site
-invoker.java.version = 1.6+
+# As of JDK 13, the com.sun.javadoc API is no longer supported.
+invoker.java.version = 13-
diff --git a/src/it/projects/additional-dependencies/invoker.properties b/src/it/projects/additional-dependencies/invoker.properties
index eca1aa7..a78a9f0 100644
--- a/src/it/projects/additional-dependencies/invoker.properties
+++ b/src/it/projects/additional-dependencies/invoker.properties
@@ -16,4 +16,5 @@
# under the License.
invoker.goals=clean site
-invoker.java.version = 1.6+
+# As of JDK 13, the com.sun.javadoc API is no longer supported.
+invoker.java.version = 13-
diff --git a/src/test/java/org/apache/maven/plugins/javadoc/JavadocReportTest.java b/src/test/java/org/apache/maven/plugins/javadoc/JavadocReportTest.java
index 55bb3d6..765ff16 100644
--- a/src/test/java/org/apache/maven/plugins/javadoc/JavadocReportTest.java
+++ b/src/test/java/org/apache/maven/plugins/javadoc/JavadocReportTest.java
@@ -457,6 +457,12 @@ public class JavadocReportTest
public void testDoclets()
throws Exception
{
+ if ( JavaVersion.JAVA_SPECIFICATION_VERSION.isAtLeast( "13" ) )
+ {
+ // As of JDK 13, the com.sun.javadoc API is no longer supported.
+ return;
+ }
+
// ----------------------------------------------------------------------
// doclet-test: check if the file generated by UmlGraph exists and if
// doclet path contains the UmlGraph artifact
@@ -464,7 +470,7 @@ public class JavadocReportTest
File testPom = new File( unit, "doclet-test/doclet-test-plugin-config.xml" );
JavadocReport mojo = lookupMojo( testPom );
-
+
MavenSession session = spy( newMavenSession( mojo.project ) );
ProjectBuildingRequest buildingRequest = mock( ProjectBuildingRequest.class );
when( buildingRequest.getRemoteRepositories() ).thenReturn( mojo.project.getRemoteArtifactRepositories() );
@@ -763,7 +769,7 @@ public class JavadocReportTest
assertTrue( content.contains( "<img src=\"doc-files/maven-feather.png\" alt=\"Maven\">" ) );
JavaVersion javadocVersion = (JavaVersion) getVariableValueFromObject( mojo, "javadocRuntimeVersion" );
- if( javadocVersion.isAtLeast( "1.8" ) && javadocVersion.isBefore( "13" ) )
+ if( javadocVersion.isAtLeast( "1.8" ) && javadocVersion.isBefore( "14" ) )
{
// https://bugs.openjdk.java.net/browse/JDK-8032205
assertTrue( "Javadoc runtime version: " + javadocVersion
@@ -1238,7 +1244,13 @@ public class JavadocReportTest
mojo.execute();
String content = readFile( stylesheetfile );
- if ( JavaVersion.JAVA_VERSION.isAtLeast( "10" ) )
+ if ( JavaVersion.JAVA_VERSION.isAtLeast( "13-ea" ) )
+ {
+ assertTrue( content.contains( "/*" + LINE_SEPARATOR
+ + " * Javadoc style sheet" + LINE_SEPARATOR
+ + " */" ) );
+ }
+ else if ( JavaVersion.JAVA_VERSION.isAtLeast( "10" ) )
{
assertTrue( content.contains( "/* " + LINE_SEPARATOR
+ " * Javadoc style sheet" + LINE_SEPARATOR