mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Refactor.
This commit is contained in:
parent
d4a4e26f14
commit
a7a02d6981
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,6 @@ open class JvmCompilerPlugin @Inject constructor(
|
||||||
! isDependencyExcluded(it, project.excludedDependencies)
|
! isDependencyExcluded(it, project.excludedDependencies)
|
||||||
}
|
}
|
||||||
|
|
||||||
val projectDirectory = File(project.directory)
|
|
||||||
val buildDirectory = if (isTest) File(project.buildDirectory, KFiles.TEST_CLASSES_DIR)
|
val buildDirectory = if (isTest) File(project.buildDirectory, KFiles.TEST_CLASSES_DIR)
|
||||||
else File(project.classesDir(context))
|
else File(project.classesDir(context))
|
||||||
buildDirectory.mkdirs()
|
buildDirectory.mkdirs()
|
||||||
|
@ -295,6 +294,7 @@ open class JvmCompilerPlugin @Inject constructor(
|
||||||
}.distinct()
|
}.distinct()
|
||||||
|
|
||||||
// Now that we have all the source directories, find all the source files in them
|
// Now that we have all the source directories, find all the source files in them
|
||||||
|
val projectDirectory = File(project.directory)
|
||||||
val sourceFiles = files.findRecursively(projectDirectory, allSourceDirectories,
|
val sourceFiles = files.findRecursively(projectDirectory, allSourceDirectories,
|
||||||
{ file -> sourceSuffixes.any { file.endsWith(it) }})
|
{ file -> sourceSuffixes.any { file.endsWith(it) }})
|
||||||
.map { File(projectDirectory, it).path }
|
.map { File(projectDirectory, it).path }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue