Skip to content

Commit

Permalink
Re-apply parallel execution fix by resolving all classes statically (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski authored May 4, 2021
1 parent d676daf commit 07d310e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ fun resolveRuleSets(
)
}

// statically resolve providers from plugin classpath
val defaultRuleSetProviders: ServiceLoader<RuleSetProvider> =
ServiceLoader.load(RuleSetProvider::class.java)
// statically resolve providers from plugin classpath. ServiceLoader#load alone resolves classes lazily which fails when run in parallel
// https://github.com/jeremymailen/kotlinter-gradle/issues/101
val defaultRuleSetProviders: List<RuleSetProvider> =
ServiceLoader.load(RuleSetProvider::class.java).toList()

0 comments on commit 07d310e

Please sign in to comment.