rbares
11/13/2020, 12:48 PMdokkaSourceSets { named("main") { ... } }
. I've managed to get includeNotPublic.set
working in that block, but sourceRoots.from
and sourceRoots.setFrom
don't do anything.Marcin Aman
11/13/2020, 1:20 PMrbares
11/13/2020, 1:47 PMMarcin Aman
11/13/2020, 1:48 PMrbares
11/13/2020, 7:13 PMtask removeAidlSources(type: Delete) {
delete "src/main/java/my/aidl/package/"
}
task addAidlSources(type: Copy) {
from "$buildDir/generated/aidl_source_output_dir/release/out/my/aidl/package/"
into "src/main/java/my/aidl/package/"
}
afterEvaluate {
tasks.matching { it.name.startsWith("dokka") }.all {
it.dependsOn addAidlSources
it.finalizedBy removeAidlSources
}
}
but it would be helpful if I didn't need to temporarily pollute the codebase with duplicate definitionsKamil Doległo
11/14/2020, 5:07 PMmain
or similar on Android) you can just remove the default value of the suppresedFiles
parameter (eg. suppressedFiles.setFrom(...)
)rbares
11/14/2020, 7:17 PMsuppressedFiles.setFrom
didn't change the behavior in the sample app provided. If the files were suppressed I would expect exclusively setting sourceRoots.setFrom
to the generated path to result in no documentation at all. Instead I get the same result whether I try to set sourceRoots or not.
This does make me wonder whether I have fallen into an edge-case where I am trying to use the syntax incorrectly but it isn't sufficiently wrong to show any errors.Kamil Doległo
11/16/2020, 11:42 AMgenerated
folder as it is filtered out by default