pinchbv / android-analyzer

Android Gradle plugin for faster Sonarqube integration in Android projects. Supports Detekt and Jacoco out of the box.
http://pinch.nl
GNU General Public License v3.0
91 stars 16 forks source link

Task "androidAnalyzerDetektConfig" fails when detekt = true #14

Closed forming closed 5 years ago

forming commented 5 years ago

Task androidAnalyzerDetektConfig fails when detekt = true.

Error message: io.gitlab.arturbosch.detekt.extensions.DetektExtension.setConfig(Lorg/gradle/api/file/ConfigurableFileCollection;)V

AndroideRob-zz commented 5 years ago

Could you please share with me your androidAnalyzer { .. } block and the exact gradle task that you are executing? That would help. Thanks.

forming commented 5 years ago

Running ./gradlew androidAnalyzer

androidAnalyzer {
    applicationId = 'com.test.project'
    projectName = 'Test project'
    projectVersion = '4.254.0'
    detekt = true
    unitTestCoverage = false
    packageName = 'com.test.project'
    buildVariant = 'debug'
    buildBreaker = false
    sonarqubeGitBranches = false // only works with a paid license
}
AndroideRob-zz commented 5 years ago

Thank you. I am going to try to reproduce it and get back to you.

AndroideRob-zz commented 5 years ago

@forming could you try again with the latest version? Detekt has been out of RC and in stable, that might have solved the issue. Appreciate it.

forming commented 5 years ago

Seems to be working perfectly now, thank you!