(WIP) try workaround
diff --git a/.azure-pipelines/azure-pipelines.yml b/.azure-pipelines/azure-pipelines.yml index 374cd34..4bcaed3 100644 --- a/.azure-pipelines/azure-pipelines.yml +++ b/.azure-pipelines/azure-pipelines.yml
@@ -4,60 +4,6 @@ matrix: JDK 5: JDK_VERSION: 5 - JDK 6: - JDK_VERSION: 6 - JDK 7: - JDK_VERSION: 7 - JDK 8: - JDK_VERSION: 8 - JDK 9: - JDK_VERSION: 9 - JDK 10: - JDK_VERSION: 10 - JDK 11: - JDK_VERSION: 11 - JDK 11 with ECJ: - JDK_VERSION: 11 - ECJ: true - JDK 12: - JDK_VERSION: 12 - JDK 13: - JDK_VERSION: 13 - JDK 14: - JDK_VERSION: 14 - JDK 15: - JDK_VERSION: 15 - JDK 16: - JDK_VERSION: 16 - JDK 17: - JDK_VERSION: 17 - JDK 17 with ECJ: - JDK_VERSION: 17 - ECJ: true - JDK 18: - JDK_VERSION: 18 - JDK 19: - JDK_VERSION: 19 - JDK 20: - JDK_VERSION: 20 - JDK 21: - JDK_VERSION: 21 - JDK 21 with ECJ: - JDK_VERSION: 21 - ECJ: true - JDK 22: - JDK_VERSION: 22 - JDK 23: - JDK_VERSION: 23 - JDK 23 with ECJ: - JDK_VERSION: 23 - ECJ: true - JDK 24: - JDK_VERSION: 24 - JDK 25: - JDK_VERSION: 25 - JDK 26: - JDK_VERSION: 26 pool: vmImage: 'ubuntu-24.04' steps:
diff --git a/jacoco-maven-plugin/pom.xml b/jacoco-maven-plugin/pom.xml index 3c5a709..950e386 100644 --- a/jacoco-maven-plugin/pom.xml +++ b/jacoco-maven-plugin/pom.xml
@@ -36,6 +36,12 @@ <maven.compiler.release>8</maven.compiler.release> <maven.compiler.source>8</maven.compiler.source> <maven.compiler.target>8</maven.compiler.target> + <!-- + Parent pom configures maven-javadoc-plugin in accordance with JDK selected by maven-toolchains-plugin, + however this module does not use maven-toolchains-plugin, so should reconfigure maven-javadoc-plugin: + --> + <javadoc.bootclasspath1>-quiet</javadoc.bootclasspath1> + <javadoc.bootclasspath2>-quiet</javadoc.bootclasspath2> </properties> <dependencies>
diff --git a/org.jacoco.build/jdk5/java/lang/Deprecated.class b/org.jacoco.build/jdk5/java/lang/Deprecated.class new file mode 100644 index 0000000..be9b94a --- /dev/null +++ b/org.jacoco.build/jdk5/java/lang/Deprecated.class Binary files differ
diff --git a/org.jacoco.build/jdk5/java/lang/Deprecated.java b/org.jacoco.build/jdk5/java/lang/Deprecated.java new file mode 100644 index 0000000..a6b5486 --- /dev/null +++ b/org.jacoco.build/jdk5/java/lang/Deprecated.java
@@ -0,0 +1,5 @@ +package java.lang; + +public @interface Deprecated { + boolean forRemoval() default false; +}
diff --git a/org.jacoco.build/pom.xml b/org.jacoco.build/pom.xml index cd97c70..f8b3289 100644 --- a/org.jacoco.build/pom.xml +++ b/org.jacoco.build/pom.xml
@@ -138,6 +138,9 @@ <jvm.args></jvm.args> <argLine>${jvm.args}</argLine> + <javadoc.bootclasspath1>-quiet</javadoc.bootclasspath1> + <javadoc.bootclasspath2>-quiet</javadoc.bootclasspath2> + <!-- Dependencies versions --> <asm.version>9.9.1</asm.version> <ant.version>1.9.16</ant.version> @@ -357,6 +360,10 @@ <configuration> <quiet>true</quiet> <detectOfflineLinks>false</detectOfflineLinks> + <additionalOptions> + <option>${javadoc.bootclasspath1}</option> + <option>${javadoc.bootclasspath2}</option> + </additionalOptions> </configuration> </plugin> <plugin> @@ -599,7 +606,7 @@ </goals> <configuration> <target> - <fileset dir="${basedir}" includes="**/*.java,**/*.xml,**/*.bsh" excludes="target/**,.idea/**,nb-configuration.xml" id="missinglicense.fileset"> + <fileset dir="${basedir}" includes="src/**/*.java,**/*.xml,**/*.bsh" excludes="target/**,.idea/**,nb-configuration.xml" id="missinglicense.fileset"> <include name="**/*.kt"/> <include name="**/*.groovy"/> <include name="**/*.scala"/> @@ -1014,6 +1021,33 @@ --> <profile> + <id>jdk5</id> + <activation> + <property> + <name>jdk.version</name> + <value>5</value> + </property> + </activation> + <properties> + <javadoc.bootclasspath1>-bootclasspath</javadoc.bootclasspath1> + <javadoc.bootclasspath2>${project.basedir}/../org.jacoco.build/jdk5:${project.basedir}/../.jdk/jre/lib/rt.jar</javadoc.bootclasspath2> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <compilerArgs> + <arg>-Xbootclasspath/p:${project.basedir}/../org.jacoco.build/jdk5</arg> + </compilerArgs> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <profile> <id>jdk6</id> <activation> <property>