make the gradle build quieter

also delete some obsolete stuff from before move to Java 11
This commit is contained in:
Gavin 2022-11-26 15:50:21 +01:00 committed by Christian Beikov
parent d9bceb3a80
commit ed52dba650
3 changed files with 1 additions and 19 deletions

View File

@ -36,16 +36,6 @@ javadoc {
] ]
tags = [ "apiNote", 'implSpec', 'implNote', 'todo' ] tags = [ "apiNote", 'implSpec', 'implNote', 'todo' ]
if ( JavaVersion.current().isJava11Compatible() ) {
//The need to set `--source 1.8` applies to all JVMs after 11, and also to 11
// but after excluding the first two builds; see also specific comments on
// https://bugs.openjdk.java.net/browse/JDK-8212233?focusedCommentId=14245762
// For now, let's be compatible with JDK 11.0.3+. We can improve on it if people
// complain they cannot build with JDK 11.0.0, 11.0.1 and 11.0.2.
System.out.println("Forcing Javadoc in Java 8 compatible mode");
options.source = gradle.ext.baselineJavaVersion
}
addStringOption( 'Xdoclint:none', '-quiet' ) addStringOption( 'Xdoclint:none', '-quiet' )
tags( tags(

View File

@ -188,7 +188,7 @@ task copyBundleResources (type: Copy) {
processTestResources { processTestResources {
dependsOn copyBundleResources dependsOn copyBundleResources
duplicatesStrategy = DuplicatesStrategy.WARN duplicatesStrategy = DuplicatesStrategy.INCLUDE
} }
sourcesJar { sourcesJar {

View File

@ -189,14 +189,6 @@ task aggregateJavadocs(type: Javadoc) {
'https://jakarta.ee/specifications/platform/8/apidocs/' 'https://jakarta.ee/specifications/platform/8/apidocs/'
] ]
//The need to set `--source 1.8` applies to all JVMs after 11, and also to 11
// but after excluding the first two builds; see also specific comments on
// https://bugs.openjdk.java.net/browse/JDK-8212233?focusedCommentId=14245762
// For now, let's be compatible with JDK 11.0.3+. We can improve on it if people
// complain they cannot build with JDK 11.0.0, 11.0.1 and 11.0.2.
logger.lifecycle "Forcing Javadoc in Java 8 compatible mode"
options.source = gradle.ext.baselineJavaVersion
options.addStringOption( 'Xdoclint:none', '-quiet' ) options.addStringOption( 'Xdoclint:none', '-quiet' )
if ( gradle.ext.javaToolchainEnabled ) { if ( gradle.ext.javaToolchainEnabled ) {