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:
parent
52436350c6
commit
0e76a2e1fe
@ -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'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user