Просмотр исходного кода

use new gradle task api

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 6 лет назад
Родитель
Сommit
9b22ac7e20
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      build.gradle

+ 4 - 4
build.gradle

@@ -147,7 +147,7 @@ android {
         exclude 'META-INF/LICENSE'
     }
 
-    task checkstyle(type: Checkstyle) {
+    tasks.register("checkstyle", Checkstyle) {
         configFile = file("${rootProject.projectDir}/checkstyle.xml")
         configProperties.checkstyleSuppressionsPath = file("${project.rootDir}/config/quality/checkstyle/suppressions.xml").absolutePath
         source 'src'
@@ -156,7 +156,7 @@ android {
         classpath = files()
     }
 
-    task pmd(type: Pmd) {
+    tasks.register("pmd", Pmd) {
         ruleSetFiles = files("${project.rootDir}/pmd-ruleset.xml")
         ignoreFailures = false
         ruleSets = []
@@ -177,7 +177,7 @@ android {
         }
     }
 
-    task findbugs(type: FindBugs) {
+    tasks.register("findbugs", FindBugs) {
         ignoreFailures = false
         effort = "max"
         reportLevel = "medium"
@@ -296,7 +296,7 @@ android.applicationVariants.all { variant ->
     }
 }
 
-task combinedTestReport(type: JacocoReport) {
+tasks.register("combinedTestReport", JacocoReport) {
 
     reports {
         xml.enabled = true