Skip to content

Instantly share code, notes, and snippets.

@claudioaltamura
Last active May 3, 2020 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claudioaltamura/aba1f6506a53b9f5499fd507abd572df to your computer and use it in GitHub Desktop.
Save claudioaltamura/aba1f6506a53b9f5499fd507abd572df to your computer and use it in GitHub Desktop.
build.gradle.kts example with additional JavadocDocletOptions for apiNote, implSpec and implNote
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
java
application
}
repositories {
jcenter()
}
dependencies {
implementation("com.google.guava:guava:28.2-jre")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.0")
}
tasks {
javadoc {
(options as StandardJavadocDocletOptions)
.tags("apiNote:a:API Note:", "implSpec:a:Implementation Requirements:", "implNote:a:Implementation Note:")
}
test {
useJUnitPlatform()
testLogging {
events = setOf(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment