Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 1a57590

Browse files
author
Florian Lautenschlager
committed
Sonarqube migration.
1 parent 5018ec8 commit 1a57590

File tree

2 files changed

+23
-54
lines changed

2 files changed

+23
-54
lines changed

build.gradle

Lines changed: 23 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
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-
171
buildscript {
182
repositories {
193
jcenter()
@@ -37,28 +21,6 @@ plugins {
3721
apply 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-
6224
allprojects {
6325
version '0.1.1'
6426

@@ -186,4 +148,27 @@ tasks.coveralls {
186148

187149
task 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
}

chronix-api/build.gradle

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
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-
171
sonarqube {
182
properties {
193
property "sonar.projectName", "de.qaware.chronix:chronix-api"

0 commit comments

Comments
 (0)