-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
78 lines (68 loc) · 2.02 KB
/
build.gradle
File metadata and controls
78 lines (68 loc) · 2.02 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
plugins {
id 'net.saliman.properties' version '1.6.0'
id "java-library"
id "org.sonarqube" version "6.3.1.5724"
}
sonar {
properties {
property "sonar.projectKey", "marklogic-spark"
property "sonar.host.url", "http://localhost:9000"
property "sonar.coverage.jacoco.xmlReportPaths", "marklogic-spark-connector/build/reports/jacoco/test/jacocoTestReport.xml"
}
}
subprojects {
apply plugin: "net.saliman.properties"
apply plugin: "java-library"
apply plugin: "jacoco"
group = "com.marklogic"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
// Allows for quickly identifying compiler warnings.
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:unchecked'
options.deprecation = true
}
repositories {
mavenCentral()
// Commenting out temporarily while preparing for a release.
// mavenLocal()
maven {
url = "https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
}
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
testLogging {
events = ['started', 'passed', 'skipped', 'failed']
exceptionFormat = 'full'
}
environment "SEMAPHORE_API_KEY", semaphoreApiKey
environment "SEMAPHORE_HOST", semaphoreHost
environment "SEMAPHORE_PATH", semaphorePath
}
// See https://docs.gradle.org/current/userguide/jacoco_plugin.html .
jacocoTestReport {
dependsOn test
reports {
xml.required = true
}
}
// Turning off coverage verification, as we haven't figured out how to configure Sonar correctly to pick up the jacoco
// report from the "code-coverage-report" subproject and accurately capture coverage.
// See https://docs.gradle.org/current/userguide/jacoco_plugin.html#sec:jacoco_report_violation_rules
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.0
}
}
}
}
}