@@ -11,7 +11,7 @@ apply from: "${rootProject.projectDir}/publish-maven.gradle"
11
11
apply plugin : ' eclipse'
12
12
apply plugin : ' idea'
13
13
14
- group = ' org.springframework.integration.print '
14
+ group = ' org.springframework.integration'
15
15
16
16
repositories {
17
17
maven { url ' http://repo.springsource.org/libs-milestone' }
28
28
mockitoVersion = ' 1.9.0'
29
29
springVersion = ' 3.1.3.RELEASE'
30
30
springIntegrationVersion = ' 2.2.0.RC2'
31
+
32
+ linkHomepage = ' https://github.com/SpringSource/spring-integration-extensions'
33
+ linkCi = ' https://build.springsource.org/browse/INTEXT'
34
+ linkIssue = ' https://jira.springsource.org/browse/INTEXT'
35
+ linkScmUrl = ' https://github.com/SpringSource/spring-integration-extensions'
36
+ linkScmConnection = ' https://github.com/SpringSource/spring-integration-extensions.git'
37
+ linkScmDevConnection
= ' [email protected] :SpringSource/spring-integration-extensions.git'
31
38
}
32
39
33
40
eclipse {
@@ -89,38 +96,17 @@ artifacts {
89
96
archives javadocJar
90
97
}
91
98
92
- apply plugin : ' sonar'
99
+ apply plugin : ' sonar-runner '
93
100
94
- sonar {
95
-
96
- if (rootProject. hasProperty(' sonarHostUrl' )) {
97
- server. url = rootProject. sonarHostUrl
98
- }
99
-
100
- database {
101
- if (rootProject. hasProperty(' sonarJdbcUrl' )) {
102
- url = rootProject. sonarJdbcUrl
103
- }
104
- if (rootProject. hasProperty(' sonarJdbcDriver' )) {
105
- driverClassName = rootProject. sonarJdbcDriver
106
- }
107
- if (rootProject. hasProperty(' sonarJdbcUsername' )) {
108
- username = rootProject. sonarJdbcUsername
109
- }
110
- if (rootProject. hasProperty(' sonarJdbcPassword' )) {
111
- password = rootProject. sonarJdbcPassword
112
- }
113
- }
114
-
115
- project {
116
- dynamicAnalysis = " reuseReports"
117
- withProjectProperties { props ->
118
- props[" sonar.core.codeCoveragePlugin" ] = " jacoco"
119
- props[" sonar.jacoco.reportPath" ] = " ${ buildDir.name} /jacoco.exec"
120
- }
101
+ sonarRunner {
102
+ sonarProperties {
103
+ property " sonar.jacoco.reportPath" , " ${ buildDir.name} /jacoco.exec"
104
+ property " sonar.links.homepage" , linkHomepage
105
+ property " sonar.links.ci" , linkCi
106
+ property " sonar.links.issue" , linkIssue
107
+ property " sonar.links.scm" , linkScmUrl
108
+ property " sonar.links.scm_dev" , linkScmDevConnection
121
109
}
122
-
123
- logger. info(" Sonar parameters used: server.url='${ server.url} '; database.url='${ database.url} '; database.driverClassName='${ database.driverClassName} '; database.username='${ database.username} '" )
124
110
}
125
111
126
112
task api (type : Javadoc ) {
@@ -252,5 +238,5 @@ task dist(dependsOn: assemble) {
252
238
253
239
task wrapper (type : Wrapper ) {
254
240
description = ' Generates gradlew[.bat] scripts'
255
- gradleVersion = ' 1.2 '
241
+ gradleVersion = ' 1.6 '
256
242
}
0 commit comments