Configuring path for static
This commit is contained in:
parent
64424e9197
commit
3fe4b2a1ae
|
|
@ -257,7 +257,7 @@ getPmdTask = { sources ->
|
||||||
def taskName = "pmd_${project.name}"
|
def taskName = "pmd_${project.name}"
|
||||||
tasks.create(taskName, Pmd) {
|
tasks.create(taskName, Pmd) {
|
||||||
pmdClasspath = configurations.pmd.asFileTree
|
pmdClasspath = configurations.pmd.asFileTree
|
||||||
ruleSetFiles = files "$rootDir/BuildScripts/pmd/rulesets/java/android.xml"
|
ruleSetFiles = files "$buildScriptsDir/pmd/rulesets/java/android.xml"
|
||||||
ruleSets = []
|
ruleSets = []
|
||||||
source files(sources)
|
source files(sources)
|
||||||
ignoreFailures = true
|
ignoreFailures = true
|
||||||
|
|
@ -296,7 +296,7 @@ getLintTasks = {
|
||||||
android.lintOptions.xmlReport = true
|
android.lintOptions.xmlReport = true
|
||||||
android.lintOptions.xmlOutput = file "$project.buildDir/reports/lint_report.xml"
|
android.lintOptions.xmlOutput = file "$project.buildDir/reports/lint_report.xml"
|
||||||
android.lintOptions.htmlReport = false
|
android.lintOptions.htmlReport = false
|
||||||
android.lintOptions.lintConfig = file "$rootDir/BuildScripts/lint/lint.xml"
|
android.lintOptions.lintConfig = file "$buildScriptsDir/lint/lint.xml"
|
||||||
return lintTaskNames
|
return lintTaskNames
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -309,7 +309,7 @@ getCheckstyleTask = { sources ->
|
||||||
ignoreFailures = true
|
ignoreFailures = true
|
||||||
showViolations = false
|
showViolations = false
|
||||||
source files(sources)
|
source files(sources)
|
||||||
configFile file("$rootDir/BuildScripts/checkstyle/configuration/touchin_checkstyle.xml")
|
configFile file("$buildScriptsDir/checkstyle/configuration/touchin_checkstyle.xml")
|
||||||
checkstyleClasspath = configurations.checkstyle.asFileTree
|
checkstyleClasspath = configurations.checkstyle.asFileTree
|
||||||
classpath = files(System.getenv("ANDROID_HOME") + "/platforms/" + android.compileSdkVersion + "/android.jar") +
|
classpath = files(System.getenv("ANDROID_HOME") + "/platforms/" + android.compileSdkVersion + "/android.jar") +
|
||||||
files(System.properties.'java.home' + "/lib/rt.jar") +
|
files(System.properties.'java.home' + "/lib/rt.jar") +
|
||||||
|
|
@ -332,7 +332,7 @@ getKotlinDetektTask = { isAndroidProject ->
|
||||||
def input = "${rootDir}"
|
def input = "${rootDir}"
|
||||||
def output = "${project.buildDir}/reports"
|
def output = "${project.buildDir}/reports"
|
||||||
def outputName = "kotlin-detekt"
|
def outputName = "kotlin-detekt"
|
||||||
def config = "$rootDir/BuildScripts/kotlin/detekt-config.yml"
|
def config = "$buildScriptsDir/kotlin/detekt-config.yml"
|
||||||
|
|
||||||
// TODO add excludes from rootProject.extensions.findByName("staticAnalysisExcludes")
|
// TODO add excludes from rootProject.extensions.findByName("staticAnalysisExcludes")
|
||||||
def filters = ".*src/test.*,.*/resources/.*,.*/tmp/.*"
|
def filters = ".*src/test.*,.*/resources/.*,.*/tmp/.*"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
def getServerProjectSources
|
def getServerProjectSources
|
||||||
def getAndroidProjectSources
|
def getAndroidProjectSources
|
||||||
|
|
||||||
apply from: "$rootDir/BuildScripts/gradle/commonStaticAnalysis.gradle"
|
apply from: "$buildScriptsDir/gradle/commonStaticAnalysis.gradle"
|
||||||
|
|
||||||
gradle.projectsEvaluated {
|
gradle.projectsEvaluated {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue