diff --git a/CHANGELOG.md b/CHANGELOG.md index b5a2b9f..0242354 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +## [0.1.13] - 2021-05-04 +### Changed +- Use quiet Java Doc output level + ## [0.1.12] - 2021-04-11 ### Changed - Updated dependencies for Gradle v7 diff --git a/README.md b/README.md index 2bc2beb..2acc1ba 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ javadoc { failOnError = false options { memberLevel = JavadocMemberLevel.PUBLIC + outputLevel = JavadocOutputLevel.QUIET encoding = 'UTF-8' } } diff --git a/src/main/kotlin/com/coditory/gradle/build/JavadocConfiguration.kt b/src/main/kotlin/com/coditory/gradle/build/JavadocConfiguration.kt index a3f327a..d914434 100644 --- a/src/main/kotlin/com/coditory/gradle/build/JavadocConfiguration.kt +++ b/src/main/kotlin/com/coditory/gradle/build/JavadocConfiguration.kt @@ -5,6 +5,7 @@ import org.gradle.api.plugins.JavaPluginConvention import org.gradle.api.tasks.SourceSet import org.gradle.api.tasks.javadoc.Javadoc import org.gradle.external.javadoc.JavadocMemberLevel +import org.gradle.external.javadoc.JavadocOutputLevel internal object JavadocConfiguration { fun configure(project: Project) { @@ -15,6 +16,7 @@ internal object JavadocConfiguration { it.classpath = main.compileClasspath it.source = main.allJava it.isFailOnError = false + it.options.outputLevel = JavadocOutputLevel.QUIET it.options.memberLevel = JavadocMemberLevel.PUBLIC it.options.encoding = "UTF-8" } diff --git a/src/test/kotlin/com/coditory/gradle/build/JavadocConfigurationTest.kt b/src/test/kotlin/com/coditory/gradle/build/JavadocConfigurationTest.kt index 980ff7a..c3ab916 100644 --- a/src/test/kotlin/com/coditory/gradle/build/JavadocConfigurationTest.kt +++ b/src/test/kotlin/com/coditory/gradle/build/JavadocConfigurationTest.kt @@ -4,6 +4,7 @@ import com.coditory.gradle.build.base.TestProjectBuilder.Companion.createProject import org.assertj.core.api.Assertions.assertThat import org.gradle.api.tasks.javadoc.Javadoc import org.gradle.external.javadoc.JavadocMemberLevel.PUBLIC +import org.gradle.external.javadoc.JavadocOutputLevel.QUIET import org.junit.jupiter.api.Test internal class JavadocConfigurationTest { @@ -19,6 +20,7 @@ internal class JavadocConfigurationTest { assertThat(it.isFailOnError).isEqualTo(false) assertThat(it.options.encoding).isEqualTo("UTF-8") assertThat(it.options.memberLevel).isEqualTo(PUBLIC) + assertThat(it.options.outputLevel).isEqualTo(QUIET) } } }