1- /*
2- * Copyright (C) 2015 QAware GmbH
3- *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
6- * You may obtain a copy of the License at
7- *
8- * http://www.apache.org/licenses/LICENSE-2.0
9- *
10- * Unless required by applicable law or agreed to in writing, software
11- * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- * See the License for the specific language governing permissions and
14- * limitations under the License.
15- */
16-
171buildscript {
182 repositories {
193 jcenter()
@@ -37,28 +21,6 @@ plugins {
3721apply plugin : ' org.sonarqube'
3822
3923
40- sonarqube {
41- def sonarUser = project. hasProperty(' sonarUser' ) ? project. sonarUser : ' unknown'
42- def sonarPw = project. hasProperty(' sonarPw' ) ? project. sonarPw : ' unknown'
43-
44- def jdbcUser = project. hasProperty(' jdbcUser' ) ? project. jdbcUser : ' unknown'
45- def jdbcPw = project. hasProperty(' jdbcPw' ) ? project. jdbcPw : ' unknown'
46-
47- properties {
48- property " sonar.sourceEncoding" , " UTF-8"
49- property " sonar.host.url" , " https://www.qaware.de/sonar"
50- property " sonar.login" , " $sonarUser "
51- property " sonar.password" , " $sonarPw "
52- property " sonar.jdbc.url" , " jdbc:mysql://nio-prj-2.intern.qaware.de:3306/sonardb?useUnicode=true&characterEncoding=utf8"
53- property " sonar.jdbc.driverClassName" , " com.mysql.jdbc.Driver"
54- property " sonar.jdbc.username" , " $jdbcUser "
55- property " sonar.jdbc.password" , " $jdbcPw "
56- property " sonar.projectName" , " ChronixDB"
57- property " sonar.projectKey" , " de.qaware.chronix:chronix"
58- property " sonar.projectVersion" ," $project . version "
59- }
60- }
61-
6224allprojects {
6325 version ' 0.1.1'
6426
@@ -186,4 +148,27 @@ tasks.coveralls {
186148
187149task wrapper (type : Wrapper ) {
188150 gradleVersion = ' 2.10'
151+ }
152+
153+
154+ sonarqube {
155+ def sonarUser = project. hasProperty(' sonarUser' ) ? project. sonarUser : ' unknown'
156+ def sonarPw = project. hasProperty(' sonarPw' ) ? project. sonarPw : ' unknown'
157+
158+ def jdbcUser = project. hasProperty(' jdbcUser' ) ? project. jdbcUser : ' unknown'
159+ def jdbcPw = project. hasProperty(' jdbcPw' ) ? project. jdbcPw : ' unknown'
160+
161+ properties {
162+ property " sonar.sourceEncoding" , " UTF-8"
163+ property " sonar.host.url" , " https://www.qaware.de/sonar"
164+ property " sonar.login" , " $sonarUser "
165+ property " sonar.password" , " $sonarPw "
166+ property " sonar.jdbc.url" , " jdbc:mysql://nio-prj-2.intern.qaware.de:3306/sonardb?useUnicode=true&characterEncoding=utf8"
167+ property " sonar.jdbc.driverClassName" , " com.mysql.jdbc.Driver"
168+ property " sonar.jdbc.username" , " $jdbcUser "
169+ property " sonar.jdbc.password" , " $jdbcPw "
170+ property " sonar.projectName" , " Chronix-API"
171+ property " sonar.projectKey" , " de.qaware.chronix:chronix.api"
172+ property " sonar.projectVersion" ," $project . version "
173+ }
189174}
0 commit comments