Fix source directories after gradle layout switch

'src' works because we're only doing java files under that directory.
But it would be slower than needed, and in the case of PMD it would also
use the test files which wasn't intended at all.
This commit is contained in:
Daniel Martí 2016-03-31 12:21:57 +01:00
parent 52436350c6
commit 0e76a2e1fe

View File

@ -184,7 +184,7 @@ checkstyle {
task checkstyle(type: Checkstyle) { task checkstyle(type: Checkstyle) {
configFile file("${project.rootDir}/config/checkstyle/checkstyle.xml") configFile file("${project.rootDir}/config/checkstyle/checkstyle.xml")
source 'src', 'test/src' source 'src/main/java', 'src/test/java', 'src/androidTest/java'
include '**/*.java' include '**/*.java'
classpath = files() classpath = files()
@ -205,7 +205,7 @@ task pmd(type: Pmd, dependsOn: assembleDebug) {
'java-imports', 'java-imports',
'java-migrating', 'java-migrating',
] ]
source 'src' source 'src/main/java'
include '**/org/fdroid/**/*.java' include '**/org/fdroid/**/*.java'
} }