question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Detect check not work on multi module project

See original GitHub issue

In my kotlin app 3 module. When i run command ./gradlew detektCheck i see -> Analyzing 0 kotlin files:

 ./gradlew detektCheck
Parallel execution with configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:detektCheck
Analyzing 0 kotlin files: 
BUILD SUCCESSFUL

And second trouble, i cant configure check for all modules (data, domain, ui)

detekt {
    version = "1.0.0.M11"
    input = "$input/data/src/main/java"
    config = "$project.projectDir/default-detekt-config.yml"
    filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
    output = true
    report = "$project.projectDir/build/reports"
}

When i try to implement detekt check in single module app it works perfect!

kotlin 1.1.1

property file:


org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m

android.useDeprecatedNdk = true
org.gradle.daemon = true
org.gradle.parallel = true
org.gradle.configureondemand=true

kotlin.incremental=true

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
arturboschcommented, Jun 8, 2018

This is also addressed with the gradle plugin rework. Each sourceset will get a detekt check task.

0reactions
lock[bot]commented, Jun 20, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why a module in my multi-module maven project doesn't work?
Right-click the parent/root project and choose Configure > Configure and Detect Nested Projects...
Read more >
Building applications with Maven - Quarkus
Working with multi-module projects. By default, Quarkus will not discover CDI beans inside another module. The best way to enable CDI bean discovery...
Read more >
Multi-Module Maven Application with Java Modules - Baeldung
Learn to create a multi-module Maven application using the Java Platform Module System (JPMS).
Read more >
Module dependencies | IntelliJ IDEA Documentation - JetBrains
If you want to check whether a dependency still exists in your project, and find its exact usages, you can run dependency analysis:....
Read more >
Executing Multi-Project Builds - Gradle User Manual
The basic rule behind Gradle's behavior is: execute all tasks down the hierarchy which have this name. Only complain if there is no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found