-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
43 lines (37 loc) · 934 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
37
38
39
40
41
42
43
apply plugin: 'java'
apply plugin: 'org.sonarqube'
apply plugin: "jacoco"
version = '1.0-SNAPSHOT'
sonarqube {
properties {
property "sonar.projectName", "SonarQube Gradle Demo"
property "sonar.projectKey", "io.eddumelendez:sonarqube-gradlle-demo"
property "sonar.java.coveragePlugin", "jacoco"
property "sonar.jacoco.reportPath", "${buildDir.name}/jacoco/test.exec"
}
}
dependencies {
testCompile 'junit:junit:4.12'
}
jacoco {
reportsDir = file("${buildDir.name}/tmp/jacoco.exec")
}
repositories {
maven {
url "http://repo1.maven.org/maven2/"
}
}
buildscript {
repositories {
maven {
url "http://repo1.maven.org/maven2/"
}
maven {
url "https://plugins.gradle.org/m2/"
}
mavenLocal()
}
dependencies {
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.3'
}
}