You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by ml...@apache.org on 2012/01/24 11:13:00 UTC
svn commit: r1235194 - /tapestry/tapestry5/trunk/build.gradle
Author: mlusetti
Date: Tue Jan 24 10:13:00 2012
New Revision: 1235194
URL: http://svn.apache.org/viewvc?rev=1235194&view=rev
Log:
TAP5-1826 Setup the Sonar plugin for analysis.apache.org
Modified:
tapestry/tapestry5/trunk/build.gradle
Modified: tapestry/tapestry5/trunk/build.gradle
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/build.gradle?rev=1235194&r1=1235193&r2=1235194&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/build.gradle (original)
+++ tapestry/tapestry5/trunk/build.gradle Tue Jan 24 10:13:00 2012
@@ -1,6 +1,7 @@
description = "Apache Tapestry 5 Project"
apply plugin: "base"
+apply plugin: "sonar"
apply from: "ssh.gradle"
apply from: "md5.gradle"
@@ -17,6 +18,13 @@ servletAPIVersion = "2.5"
// Provided so that the CI server can override the normal version number for nightly builds.
version = System.getProperty("project-version", tapestryVersion)
+// Let analysis.apache.org get in touch with our builds
+sonarUrl = System.getProperty("sonarUrl", "http://analysis.apache.org");
+sonarDbUrl = System.getProperty("sonarDbUrl", "");
+sonarDbUsername = System.getProperty("sonarDbUsername", "");
+sonarDbPassword = System.getProperty("sonarDbPassword", "");
+sonarDbDriverClassName = "com.mysql.jdbc.Driver"
+
stagingUrl = "https://repository.apache.org/service/local/staging/deploy/maven2/"
snapshotUrl = "https://repository.apache.org/content/repositories/snapshots"
@@ -31,6 +39,18 @@ canDeploy = [deployUsernameProperty, dep
deployUsername = { getProperty(deployUsernameProperty) }
deployPassword = { getProperty(deployPasswordProperty) }
+sonar {
+ server {
+ url = sonarUrl
+ }
+ database {
+ url = sonarDbUrl
+ driverClassName = sonarDbDriverClassName
+ username = sonarDbUsername
+ password = sonarDbPassword
+ }
+}
+
allprojects {
apply plugin: "eclipse"
@@ -313,4 +333,4 @@ task generateRelease {
dependsOn "quickstart:clean", continuousIntegration, subprojects.uploadPublished, uploadSourcesAndJavadocs
group "Release artifact"
description "Generates and uploads a final release to Apache Nexus"
-}
\ No newline at end of file
+}