Slackbot
04/17/2023, 10:49 AMAdam
04/17/2023, 10:49 AMAdam
04/17/2023, 10:50 AM⌄ task:dokkatooGenerateModuleHtml of type dev.adamko.dokkatoo.tasks.DokkatooGenerateTask
⌄ field__dokkaSourceSets__ of dev.adamko.dokkatoo.tasks.DokkatooGenerateTask
⌄ bean of type org.gradle.api.internal.FactoryNamedDomainObjectContainer
⌄ fieldeventRegister of org.gradle.api.internal.FactoryNamedDomainObjectContainer
⌄ bean of type org.gradle.api.internal.collections.DefaultCollectionEventRegister
⌄ fieldaddActions of org.gradle.api.internal.collections.DefaultCollectionEventRegister
⌄ bean of type org.gradle.internal.ImmutableActionSet$SetWithFewActions
⌄ fieldactions of org.gradle.internal.ImmutableActionSet$SetWithFewActions
⌄ bean of type org.gradle.api.internal.DefaultMutationGuard$1
⌄ fieldval$action of org.gradle.api.internal.DefaultMutationGuard$1
⌄ bean of type org.gradle.api.internal.DefaultMutationGuard$1
⌄ fieldval$action of org.gradle.api.internal.DefaultMutationGuard$1
⌄ bean of type org.gradle.api.internal.DefaultCollectionCallbackActionDecorator$BuildOperationEmittingAction
⌄ fielddelegate of org.gradle.api.internal.DefaultCollectionCallbackActionDecorator$BuildOperationEmittingAction
⌄ bean of type org.gradle.configuration.internal.DefaultUserCodeApplicationContext$CurrentApplication$1
⌄ fieldval$action of org.gradle.configuration.internal.DefaultUserCodeApplicationContext$CurrentApplication$1
⌄ bean of type Build_gradle$4$5$1
⌄ fieldthis$0 of Build_gradle$4$5$1
■:warning:cannot serialize Gradle script object references as these are not supported with the configuration cache.[ ?](<https://docs.gradle.org/8.1/userguide/configuration_cache.html#config_cache:requirements:disallowed_types>)
Adam
04/17/2023, 11:43 AMProject.file()
inside of a configureEach {}
block
tasks {
dokkatooGenerateModuleHtml.configure {
// define a val to be compatible with CC
val srcMainKotlinDir = layout.projectDirectory.dir("src/main/kotlin")
dokkaSourceSets.configureEach {
sourceLink {
//localDirectory.set(file("src/main/kotlin")) // causes CC error
localDirectory.set(srcMainKotlinDir)
} }
}
}
Vampire
04/17/2023, 11:55 AMversion
in the original codeAdam
04/17/2023, 1:57 PM