Skip to content

Commit

Permalink
Enable gradle worker api
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisGabin committed Jan 26, 2024
1 parent 6b5a5f9 commit d4e9bb4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -214,7 +214,7 @@ abstract class Detekt @Inject constructor(

@TaskAction
fun check() {
if (providers.gradleProperty(USE_WORKER_API).getOrElse("false") == "true") {
if (providers.gradleProperty(USE_WORKER_API).getOrElse("true").toBoolean()) {
logger.info("Executing $name using Worker API")
val workQueue = workerExecutor.processIsolation { workerSpec ->
workerSpec.classpath.from(detektClasspath)
Expand Down
Expand Up @@ -143,7 +143,7 @@ abstract class DetektCreateBaselineTask @Inject constructor(

@TaskAction
fun baseline() {
if (providers.gradleProperty(USE_WORKER_API).getOrElse("false") == "true") {
if (providers.gradleProperty(USE_WORKER_API).getOrElse("true").toBoolean()) {
logger.info("Executing $name using Worker API")
val workQueue = workerExecutor.processIsolation { workerSpec ->
workerSpec.classpath.from(detektClasspath)
Expand Down
Expand Up @@ -57,7 +57,7 @@ abstract class DetektGenerateConfigTask @Inject constructor(

Files.createDirectories(configFile.get().asFile.parentFile.toPath())

if (providers.gradleProperty(USE_WORKER_API).getOrElse("false") == "true") {
if (providers.gradleProperty(USE_WORKER_API).getOrElse("true").toBoolean()) {
logger.info("Executing $name using Worker API")
val workQueue = workerExecutor.processIsolation { workerSpec ->
workerSpec.classpath.from(detektClasspath)
Expand Down

0 comments on commit d4e9bb4

Please sign in to comment.