[Cross-posed from #Dokka]: I'm working on creating...
# gradle
e
[Cross-posed from #Dokka]: I'm working on creating a template project that uses Gradle to run Dokka but can't figure out how to include all
package.md
files, regardless of what directories they appear in (the way all source code is included, regardless of directory). I tried:
Copy code
tasks.withType<org.jetbrains.dokka.gradle.DokkaTask>().configureEach {
    dokkaSourceSets {
        named("main") {
            includes.from("package.md")
        }
    }
}
but this only looks for
package.md
in the root directory:
Copy code
C:\Users\ellen\IdeaProjects\gradle-test\package.md (The system cannot find the file specified)
How would I make it look for files named
package.md
in any
src
directory?
t
@Ignat Beresnev could you help?
i
Hi! Yeah, I was planning on taking a look at it today as I don't have an answer off the top of my head, but haven't gotten to it yet. I will by the end of the day though
e
I got an answer from @Vadim Mishenev 🙏 :
Copy code
includes.from(fileTree(project.rootDir) {
                include("src/**/package.md")
            })
Thanks so much!