From 770fa952d0755a3b37b68c928663f5f6beec06f9 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Fri, 26 Aug 2016 22:27:17 +0200 Subject: [PATCH] Update gradle to 3.0, gradle android plugin to 2.2-beta2 Also needs java8, hopefully only for compilation though (we need java7 for KitKat) This also fixes lots of exceptions in the pmd report. --- app/build.gradle | 4 ++++ build.gradle | 2 +- config/pmd/pmd-ruleset.xml | 5 ++++- gradle/wrapper/gradle-wrapper.properties | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index afa03ee0..6ff8c87a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -43,6 +43,10 @@ android { } } +pmd { + toolVersion = '5.5.1' +} + dependencies { // testCompile 'ch.qos.logback:logback-classic:1.1.3' // testCompile 'ch.qos.logback:logback-core:1.1.3' diff --git a/build.gradle b/build.gradle index 14aa16c7..912050fc 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.1.3' + classpath 'com.android.tools.build:gradle:2.2.0-beta2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/config/pmd/pmd-ruleset.xml b/config/pmd/pmd-ruleset.xml index 1670efb0..dd9ab574 100644 --- a/config/pmd/pmd-ruleset.xml +++ b/config/pmd/pmd-ruleset.xml @@ -33,7 +33,10 @@ - + + + + diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index e94f69bd..d1128303 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-all.zip