Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMD check doesn't seem to work (for gradle) #22

Open
lkjh654 opened this issue Jan 2, 2014 · 2 comments
Open

PMD check doesn't seem to work (for gradle) #22

lkjh654 opened this issue Jan 2, 2014 · 2 comments

Comments

@lkjh654
Copy link

lkjh654 commented Jan 2, 2014

Steps to reproduce:

  1. execute command 'gradle pmd'

Expected behaviour:
PMD report is generated and present in /report directory

Actual result:
no PMD result is present. Task ends with 'UP-TO-DATE' status:

:android-sample:pmd UP-TO-DATE

@lkjh654
Copy link
Author

lkjh654 commented Jan 16, 2014

changing
source = fileTree(android.sourceSets.main.java.srcDirs)

to:
source = fileTree('src/main/java/')

Fixes the issue.

@gounthar
Copy link

gounthar commented Jul 3, 2014

Your workaround worked for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants