-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
48 lines (39 loc) · 1.07 KB
/
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
44
45
46
47
plugins {
id "jacoco"
id "java"
id "application"
id "org.sonarqube" version "4.2.1.3168"
}
description = 'Example of Sonar Scanner for Gradle Usage'
version = '1.0'
sonar {
properties {
property "sonar.projectKey", "SQ_Gradle"
property "sonar.projectName", "SQ_Gradle"
}
}
// 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.
mavenCentral()
}
dependencies {
// This dependency is found on compile classpath of this component and consumers.
implementation 'com.google.guava:guava:31.1-jre'
// Use JUnit test framework
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
}
// Define the main class for the application
mainClassName = 'App'
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
//html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}
}