Skip to content
Permalink
Browse files

Exclude `servicetalk-concurrent-jdkflow` from JDK8 javadoc (#927)

Motivation:

`servicetalk-concurrent-jdkflow` depends on JDK9+, we have
to exclude it from gradle's `javadocAll` task that we create
for the root project.

Modifications:

- Exclude `servicetalk-concurrent-jdkflow` from JDK8 javadoc;

Result:

`javadocAll` doesn't fail on JDK8.
  • Loading branch information
idelpivnitskiy authored and Scottmitch committed Jan 23, 2020
1 parent 190e451 commit 16e5bf028b0b0deabd7b29b4a2119f690ebdda2a
@@ -15,6 +15,7 @@
*/
package io.servicetalk.gradle.plugin.internal

import org.gradle.api.JavaVersion
import org.gradle.api.Project
import org.gradle.api.tasks.javadoc.Javadoc

@@ -44,7 +45,8 @@ final class ServiceTalkRootPlugin extends ServiceTalkCorePlugin {
destinationDir = file("$buildDir/javadoc")

gradle.projectsEvaluated {
subprojects.findAll {!it.name.contains("examples")}.each { prj ->
subprojects.findAll {!it.name.contains("examples") &&
!(it.name.contains("jdkflow") && !JavaVersion.current().isJava9Compatible())}.each { prj ->
prj.tasks.withType(Javadoc).each { javadocTask ->
source += javadocTask.source
classpath += javadocTask.classpath

0 comments on commit 16e5bf0

Please sign in to comment.
You can’t perform that action at this time.