forked from SonarSource/sonar-scanning-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
36 lines (31 loc) · 842 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
plugins {
id "java-library"
id "org.sonarqube" version "2.7"
}
allprojects {
ext.baseVersion = "0.1"
ext.snapshotVersion = true
group = "org.sonarqube"
version = "$baseVersion" + (snapshotVersion ? "-SNAPSHOT" : "")
}
sonarqube {
properties {
property "sonar.projectName", "Example of SonarQube Scanner for Gradle - Multimodule"
property "sonar.projectKey", "org.sonarqube:gradle-multimodule"
}
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'org.sonarqube'
sonarqube {
properties {
//property "sonar.java.libraries",
}
}
}
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}