You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by st...@apache.org on 2016/06/13 12:58:11 UTC
[02/18] incubator-taverna-mobile git commit: add checkstyle gradle
file
add checkstyle gradle file
Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/commit/fb652212
Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/tree/fb652212
Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/diff/fb652212
Branch: refs/heads/master
Commit: fb652212562261cc8a41d6418ec56f6bcf436a47
Parents: 4f1f996
Author: Sagar <ku...@gmail.com>
Authored: Thu Jun 9 22:59:05 2016 +0530
Committer: Sagar <ku...@gmail.com>
Committed: Thu Jun 9 22:59:05 2016 +0530
----------------------------------------------------------------------
app/build.gradle | 1 +
config/quality/quality.gradle | 26 ++++++++++++++++++++++++++
2 files changed, 27 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/blob/fb652212/app/build.gradle
----------------------------------------------------------------------
diff --git a/app/build.gradle b/app/build.gradle
index 110480a..fb281bd 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,5 +1,6 @@
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
+apply from: '../config/quality/quality.gradle'
android {
compileSdkVersion 23
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/blob/fb652212/config/quality/quality.gradle
----------------------------------------------------------------------
diff --git a/config/quality/quality.gradle b/config/quality/quality.gradle
new file mode 100644
index 0000000..8883952
--- /dev/null
+++ b/config/quality/quality.gradle
@@ -0,0 +1,26 @@
+apply plugin: 'checkstyle'
+
+dependencies {
+ checkstyle 'com.puppycrawl.tools:checkstyle:6.5'
+}
+
+def qualityConfigDir = "$project.rootDir/config/quality";
+def reportsDir = "$project.buildDir/reports"
+
+check.dependsOn 'checkstyle'
+
+task checkstyle(type: Checkstyle, group: 'Verification', description: 'Runs code style checks') {
+ configFile file("$qualityConfigDir/checkstyle/checkstyle-config.xml")
+ source 'src'
+ include '**/*.java'
+ exclude '**/gen/**'
+
+ reports {
+ xml.enabled = true
+ xml {
+ destination "$reportsDir/checkstyle/checkstyle.xml"
+ }
+ }
+
+ classpath = files()
+}
\ No newline at end of file