mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
Extract IAffinity in its own interface.
This commit is contained in:
parent
4c63be1f16
commit
fd5fb983e2
6 changed files with 9 additions and 25 deletions
|
@ -61,8 +61,8 @@ abstract class JvmCompilerPlugin @Inject constructor(
|
|||
fun taskTest(project: Project) : TaskResult {
|
||||
lp(project, "Running tests")
|
||||
|
||||
val runContributor = context.pluginInfo.testRunnerContributors.maxBy { it.runAffinity(project, context)}
|
||||
if (runContributor != null && runContributor.runAffinity(project, context) > 0) {
|
||||
val runContributor = context.pluginInfo.testRunnerContributors.maxBy { it.affinity(project, context)}
|
||||
if (runContributor != null && runContributor.affinity(project, context) > 0) {
|
||||
return runContributor.run(project, context, dependencyManager.testDependencies(project, context,
|
||||
projects()))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue