-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
58 lines (50 loc) · 1.3 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
48
49
50
51
52
53
54
55
56
57
58
plugins {
id "java-library"
id "org.sonarqube" version "6.0.1.5171"
}
sonar {
properties {
property "sonar.projectKey", "marklogic-spark"
property "sonar.host.url", "http://localhost:9000"
property "sonar.coverage.jacoco.xmlReportPaths", "code-coverage-report/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml"
}
}
subprojects {
apply plugin: "java-library"
apply plugin: "jacoco"
group = "com.marklogic"
version "2.5.1"
java {
sourceCompatibility = 11
targetCompatibility = 11
}
repositories {
mavenCentral()
mavenLocal()
maven {
url "https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
}
}
configurations.all {
// Ensures that slf4j-api 1.x does not appear on the Flux classpath in particular, which can lead to this
// issue - https://www.slf4j.org/codes.html#StaticLoggerBinder .
resolutionStrategy {
force "org.slf4j:slf4j-api:2.0.13"
}
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
testLogging {
events 'started', 'passed', 'skipped', 'failed'
exceptionFormat 'full'
}
}
// See https://docs.gradle.org/current/userguide/jacoco_plugin.html .
jacocoTestReport {
dependsOn test
reports {
xml.required = true
}
}
}