mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Don't compile tests when there are none.
This commit is contained in:
parent
f87a1f5164
commit
1a329dbd52
1 changed files with 11 additions and 4 deletions
|
@ -126,10 +126,17 @@ public class JavaPlugin @Inject constructor(
|
||||||
{ it: String -> it.endsWith(".java") }
|
{ it: String -> it.endsWith(".java") }
|
||||||
.map { File(projectDir, it).absolutePath }
|
.map { File(projectDir, it).absolutePath }
|
||||||
|
|
||||||
return compilePrivate(project,
|
val result =
|
||||||
testDependencies(project),
|
if (absoluteSourceFiles.size() > 0) {
|
||||||
absoluteSourceFiles,
|
compilePrivate(project,
|
||||||
makeOutputTestDir(project))
|
testDependencies(project),
|
||||||
|
absoluteSourceFiles,
|
||||||
|
makeOutputTestDir(project))
|
||||||
|
} else {
|
||||||
|
// No files to compile
|
||||||
|
TaskResult()
|
||||||
|
}
|
||||||
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue