Skip to content

Commit

Permalink
KAFKA-16739: Exclude protected members from aggregated release javado…
Browse files Browse the repository at this point in the history
…cs (apache#15940)

Reviewers: Matthias J. Sax <[email protected]>
  • Loading branch information
gharris1727 authored May 21, 2024
1 parent 6339e3a commit 7de58f7
Showing 1 changed file with 15 additions and 27 deletions.
42 changes: 15 additions & 27 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,21 @@ allprojects {
}
}
task printAllDependencies(type: DependencyReportTask) {}

tasks.withType(Javadoc) {
options.charSet = 'UTF-8'
options.docEncoding = 'UTF-8'
options.encoding = 'UTF-8'
options.memberLevel = JavadocMemberLevel.PUBLIC // Document only public members/API
// Turn off doclint for now, see https://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html for rationale
options.addStringOption('Xdoclint:none', '-quiet')

// The URL structure was changed to include the locale after Java 8
if (JavaVersion.current().isJava11Compatible())
options.links "https://docs.oracle.com/en/java/javase/${JavaVersion.current().majorVersion}/docs/api/"
else
options.links "https://docs.oracle.com/javase/8/docs/api/"
}
}

def determineCommitId() {
Expand Down Expand Up @@ -594,21 +609,6 @@ subprojects {

task docsJar(dependsOn: javadocJar)

javadoc {
options.charSet = 'UTF-8'
options.docEncoding = 'UTF-8'
options.encoding = 'UTF-8'
options.memberLevel = JavadocMemberLevel.PUBLIC // Document only public members/API
// Turn off doclint for now, see https://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html for rationale
options.addStringOption('Xdoclint:none', '-quiet')

// The URL structure was changed to include the locale after Java 8
if (JavaVersion.current().isJava11Compatible())
options.links "https://docs.oracle.com/en/java/javase/${JavaVersion.current().majorVersion}/docs/api/"
else
options.links "https://docs.oracle.com/javase/8/docs/api/"
}

task systemTestLibs(dependsOn: jar)

if (!sourceSets.test.allSource.isEmpty()) {
Expand Down Expand Up @@ -3342,16 +3342,4 @@ task aggregatedJavadoc(type: Javadoc, dependsOn: compileJava) {
classpath = files(projectsWithJavadoc.collect { it.sourceSets.main.compileClasspath })
includes = projectsWithJavadoc.collectMany { it.javadoc.getIncludes() }
excludes = projectsWithJavadoc.collectMany { it.javadoc.getExcludes() }

options.charSet = 'UTF-8'
options.docEncoding = 'UTF-8'
options.encoding = 'UTF-8'
// Turn off doclint for now, see https://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html for rationale
options.addStringOption('Xdoclint:none', '-quiet')

// The URL structure was changed to include the locale after Java 8
if (JavaVersion.current().isJava11Compatible())
options.links "https://docs.oracle.com/en/java/javase/${JavaVersion.current().majorVersion}/docs/api/"
else
options.links "https://docs.oracle.com/javase/8/docs/api/"
}

0 comments on commit 7de58f7

Please sign in to comment.