Skip to content

Commit

Permalink
sourcesRoots should not be resolved recursively
Browse files Browse the repository at this point in the history
Signed-off-by: solonovamax <[email protected]>
  • Loading branch information
solonovamax committed Oct 16, 2024
1 parent 199d2a7 commit 5f9bb13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ internal object DokkaSourceSetBuilder {
classpath = spec.classpath.asFileTree.files.toList(),
includes = spec.includes.asFileTree.files,
samples = spec.samples.asFileTree.files,
sourceRoots = spec.sourceRoots.asFileTree.files,
sourceRoots = spec.sourceRoots.files,
suppressedFiles = spec.suppressedFiles.asFileTree.files,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class DokkaSourceSetBuilderTest : FunSpec({
val samplesSubFile = samplesDir.subdirWithFile().createFile()

val rootsDir = tempDir.resolve("roots").ensureDirExists()
val rootsFile = rootsDir.resolve("test-file").createFile()
val rootsSubFile = rootsDir.subdirWithFile().createFile()
rootsDir.resolve("test-file").createFile()
rootsDir.subdirWithFile().createFile()

val suppressedDir = tempDir.resolve("suppressed").ensureDirExists()
val suppressedFile = suppressedDir.resolve("test-file").createFile()
Expand All @@ -69,7 +69,7 @@ class DokkaSourceSetBuilderTest : FunSpec({
sourceSet.classpath shouldContainExactlyInAnyOrder listOf(classpathFile, classpathSubFile)
sourceSet.includes shouldContainExactlyInAnyOrder listOf(includesFile, includesSubFile)
sourceSet.samples shouldContainExactlyInAnyOrder listOf(samplesFile, samplesSubFile)
sourceSet.sourceRoots shouldContainExactlyInAnyOrder listOf(rootsFile, rootsSubFile)
sourceSet.sourceRoots shouldContainExactlyInAnyOrder listOf(rootsDir)
sourceSet.suppressedFiles shouldContainExactlyInAnyOrder listOf(suppressedFile, suppressedSubFile)
}
}
Expand Down

0 comments on commit 5f9bb13

Please sign in to comment.