Skip to content

Commit

Permalink
feat(build): add javadoc generation support
Browse files Browse the repository at this point in the history
  • Loading branch information
darksaid98 committed Feb 6, 2024
1 parent 54780af commit e4d1a8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.flywaydb.gradle.task.FlywayMigrateTask
import org.jooq.codegen.gradle.CodegenTask
import org.jooq.meta.jaxb.Logging
import java.time.Instant

Expand All @@ -24,6 +22,7 @@ val mainPackage = "${project.group}.${rootProject.name}"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(JavaVersion.VERSION_17.majorVersion)) // 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
}

repositories {
Expand Down Expand Up @@ -104,6 +103,7 @@ tasks {

javadoc {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
exclude("${mainPackage.replace(".", "/")}/db/schema/**") // Exclude generated jOOQ sources from javadocs
}

processResources {
Expand Down

0 comments on commit e4d1a8f

Please sign in to comment.