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

Enable analyzer on non-android module #5

Open cesarsicas opened 5 years ago

cesarsicas commented 5 years ago

Hi, i'm testing the lib on a project with three different Modules. Two of them are Android Dependent, so they have android and flavors configured on Gradle. The android-analyzer is working perfectly on these modules.

But, one of the modules doesn't have any Android dependency. When i try to include android-analyzer and run the task, the Gradle emit the following error (domain is my module):

Could not determine the dependencies of task ':domain:androidAnalyzerJacoco'. Task with path 'testDebugUnitTest' not found in project ':domain'.

Any help with this ? Is there a way to configure the lib with a non-android project ?

Thanks in advance !

AndroideRob-zz commented 5 years ago

Thank you for pointing out the issue. I am looking into it.

AndroideRob-zz commented 5 years ago

@cesarsicas You can use the plugin on java modules as long as you don't specify unitTestCoverage = true. I am looking into how to support this functionality, in the meantime, you can use the plugin without test coverage on java modules.