You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wave-commits@incubator.apache.org by wi...@apache.org on 2017/04/24 15:06:27 UTC
[2/3] incubator-wave git commit: Added inbuilt gradle style checking
Added inbuilt gradle style checking
Project: http://git-wip-us.apache.org/repos/asf/incubator-wave/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-wave/commit/393fce0b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-wave/tree/393fce0b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-wave/diff/393fce0b
Branch: refs/heads/master
Commit: 393fce0b9627f438932935f5677e35f76454f765
Parents: 3a51151
Author: wisebaldone <eh...@gmail.com>
Authored: Mon Apr 24 22:07:43 2017 +1000
Committer: wisebaldone <eh...@gmail.com>
Committed: Tue Apr 25 01:01:11 2017 +1000
----------------------------------------------------------------------
pst/build.gradle | 12 ++++++++++++
wave/build.gradle | 11 +++++++++++
2 files changed, 23 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/393fce0b/pst/build.gradle
----------------------------------------------------------------------
diff --git a/pst/build.gradle b/pst/build.gradle
index 3c7bbe6..9b4dc85 100644
--- a/pst/build.gradle
+++ b/pst/build.gradle
@@ -23,6 +23,8 @@ plugins {
id 'com.github.johnrengelman.shadow' version '1.2.3'
id 'com.google.protobuf' version '0.8.0'
}
+apply plugin: 'checkstyle'
+apply plugin: 'com.google.protobuf'
//=============================================================================
// Project Level Settings
@@ -93,6 +95,16 @@ dependencies {
}
//=============================================================================
+// CheckStyle Config
+//=============================================================================
+checkstyle {
+ toolVersion = "7.6.1"
+ configFile = file("/google_checks.xml")
+}
+
+checkstyleMain.source = "src/main/java" // only checks the manually written java
+
+//=============================================================================
// Protobuf Config
//=============================================================================
protobuf {
http://git-wip-us.apache.org/repos/asf/incubator-wave/blob/393fce0b/wave/build.gradle
----------------------------------------------------------------------
diff --git a/wave/build.gradle b/wave/build.gradle
index 232a286..32583b8 100644
--- a/wave/build.gradle
+++ b/wave/build.gradle
@@ -23,6 +23,8 @@ plugins {
id 'application'
id "com.google.protobuf" version "0.8.0"
}
+apply plugin: 'com.google.protobuf'
+apply plugin: 'checkstyle'
//=============================================================================
// Project Level Settings
@@ -191,6 +193,15 @@ dependencies {
[group: "org.mockito", name: "mockito-core", version: "2.2.21"], // [11/2016, 1/2018]
)
}
+//=============================================================================
+// CheckStyle Config
+//=============================================================================
+checkstyle {
+ toolVersion = "7.6.1"
+ configFile = file("/google_checks.xml")
+}
+
+checkstyleMain.source = "src/main/java" // only checks the manually written java
//=============================================================================
// Protobuf Config