Skip to content

Commit

Permalink
make the gradle build quieter
Browse files Browse the repository at this point in the history
also delete some obsolete stuff from before move to Java 11
  • Loading branch information
gavinking authored and beikov committed Nov 28, 2022
1 parent d9bceb3 commit ed52dba
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
10 changes: 0 additions & 10 deletions gradle/javadoc.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ javadoc {
]
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' )

tags(
Expand Down
2 changes: 1 addition & 1 deletion hibernate-core/hibernate-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ task copyBundleResources (type: Copy) {

processTestResources {
dependsOn copyBundleResources
duplicatesStrategy = DuplicatesStrategy.WARN
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

sourcesJar {
Expand Down
8 changes: 0 additions & 8 deletions release/release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,6 @@ task aggregateJavadocs(type: Javadoc) {
'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' )

if ( gradle.ext.javaToolchainEnabled ) {
Expand Down

0 comments on commit ed52dba

Please sign in to comment.