Skip to content

Commit

Permalink
build: enable javadoc generation by default
Browse files Browse the repository at this point in the history
  • Loading branch information
darksaid98 committed Feb 22, 2024
1 parent ed12e78 commit 62c36de
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ val mainPackage = "${project.group}.${rootProject.name.lowercase()}"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17)) // Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example.
// withJavadocJar() // NOTE: Use if you want to generate javadocs for your plugin
withJavadocJar() // Enable Javadoc generation
// withSourcesJar()
}

repositories {
Expand Down Expand Up @@ -102,8 +103,13 @@ tasks {
}

javadoc {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
isFailOnError = false
exclude("${mainPackage.replace(".", "/")}/db/schema/**") // Exclude generated jOOQ sources from javadocs
val options = options as StandardJavadocDocletOptions
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
options.overview = "src/main/javadoc/overview.html"
options.tags("apiNote:a:API Note:", "implNote:a:Implementation Note:", "implSpec:a:Implementation Requirements:")
options.use()
}

processResources {
Expand Down

0 comments on commit 62c36de

Please sign in to comment.