geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject [01/50] [abbrv] incubator-geode git commit: GEODE-64: Add SonarQube Plugin And Initial Configuration
Date Wed, 10 Aug 2016 19:40:47 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-420 b82db4084 -> 8db6da065


GEODE-64: Add SonarQube Plugin And Initial Configuration

Adding SonarQube plugin with basic configuration and can be integrated with
the SonarQube Scanner. Configuration was tested on a local installation to
verify scan completes, however, it will need to change once on Apache
infrastructure


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/3bedb5b6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/3bedb5b6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/3bedb5b6

Branch: refs/heads/feature/GEODE-420
Commit: 3bedb5b68deb5645e62dd9bf178a32125e8137fb
Parents: 2370357
Author: Mark Bretl <mbretl@apache.org>
Authored: Wed Jul 27 10:57:50 2016 -0700
Committer: Mark Bretl <mbretl@apache.org>
Committed: Mon Aug 1 10:49:19 2016 -0700

----------------------------------------------------------------------
 build.gradle        |  3 +++
 gradle/sonar.gradle | 44 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/3bedb5b6/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 9a3ff10..eac68d0 100755
--- a/build.gradle
+++ b/build.gradle
@@ -24,6 +24,7 @@ buildscript {
     classpath "gradle.plugin.org.nosphere.apache:creadur-rat-gradle:0.2.0"
     classpath "org.ajoberstar:gradle-git:1.3.2"
     classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
+    classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.0.1'
   }
 }
 
@@ -39,6 +40,7 @@ dependencyVersions.load(new FileInputStream("${project.projectDir}/gradle/depend
 dependencyVersions.keys().each{ k -> project.ext[k] = dependencyVersions[k]}
 
 allprojects {
+
   version = versionNumber + releaseType
   ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
 
@@ -77,6 +79,7 @@ apply from: "${scriptDir}/dependency-resolution.gradle"
 apply from: "${scriptDir}/test.gradle"
 apply from: "${scriptDir}/publish.gradle"
 apply from: "${scriptDir}/code-analysis.gradle"
+apply from: "${scriptDir}/sonar.gradle"
 apply from: "${scriptDir}/ide.gradle"
 apply from: "${scriptDir}/rat.gradle"
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/3bedb5b6/gradle/sonar.gradle
----------------------------------------------------------------------
diff --git a/gradle/sonar.gradle b/gradle/sonar.gradle
new file mode 100644
index 0000000..5f9dac1
--- /dev/null
+++ b/gradle/sonar.gradle
@@ -0,0 +1,44 @@
+apply plugin: 'org.sonarqube'
+
+sonarqube {
+  properties {
+    property "sonar.host.url", "https://analysis.apache.org"
+    property "sonar.projectKey", "org.apache:geode"
+    property "sonar.sourceEncoding", "UTF-8"
+    property "sonar.jdbc.driverClassName", "com.mysql.jdbc.Driver"
+    property "sonar.scm.provider", "git"
+    property "sonar.projectName", "Apache Geode"
+    property "sonar.projectVersion", version
+    property "sonar.projectDescription", "Apache Geode (incubating)"
+  }
+}
+
+project("extensions/geode-modules") {
+  sonarqube {
+    skipProject = true
+  }
+}
+
+project("extensions/geode-modules-assembly") {
+  sonarqube {
+    skipProject = true
+  }
+}
+
+project("extensions/geode-modules-hibernate") {
+  sonarqube {
+    skipProject = true
+  }
+}
+
+project("extensions/geode-modules-session") {
+  sonarqube {
+    skipProject = true
+  }
+}
+
+project("extensions/geode-modules-tomcat7") {
+  sonarqube {
+    skipProject = true
+  }
+}


Mime
View raw message