Skip to content

Commit

Permalink
Set javadoc output to quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
pmendelski committed May 4, 2021
1 parent 267ce69 commit aa5e9db
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ javadoc {
failOnError = false
options {
memberLevel = JavadocMemberLevel.PUBLIC
outputLevel = JavadocOutputLevel.QUIET
encoding = 'UTF-8'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
}
}
}

0 comments on commit aa5e9db

Please sign in to comment.