Skip to content

Configuration needed for feature variants #216

Answered by aSemy
kelvSYC asked this question in Q&A
Discussion options

You must be logged in to vote

Dokkatoo will automatically discover all source sets, and prepare default configuration for them. However, by default Dokkatoo will mark non-main source sets as 'suppressed'.

(Non-main source sets are suppressed by default, otherwise 'test' and 'test fixture' source sets will be included, and it's hard to determine just based on the name whether a source set should be enabled or not.)

You can override the default though, by setting suppress = false for the variant source set:

// build.gradle.kts

plugins {
  `java-library`
  id("dev.adamko.dokkatoo-html")
}

val variant by sourceSets.creating {}

java {
  registerFeature("variant") {
    usingSourceSet(variant)
  }
}

dokkatoo {
  // Dokk…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aSemy
Comment options

aSemy Apr 8, 2024
Maintainer

Answer selected by kelvSYC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants