-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (49 loc) · 1.6 KB
/
build.gradle
File metadata and controls
59 lines (49 loc) · 1.6 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
/*
* Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
*/
subprojects {
apply plugin: 'java-library'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
testImplementation.extendsFrom compileOnly
all {
resolutionStrategy {
// Forcing the latest commons-lang3 version to eliminate CVEs.
force "org.apache.commons:commons-lang3:3.19.0"
}
}
}
repositories {
mavenLocal()
mavenCentral()
// Needed so that ml-development-tools can resolve snapshots of marklogic-client-api.
maven {
url = "https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
}
}
// Allows for identifying compiler warnings and treating them as errors.
tasks.withType(JavaCompile).configureEach {
options.compilerArgs += ["-Xlint:unchecked", "-Xlint:deprecation", "-Werror"]
options.deprecation = true
options.warnings = true
}
tasks.withType(Test).configureEach {
// Can't use useJUnitPlatform here as it breaks ml-development-tools
testLogging {
events = ['started', 'passed', 'skipped', 'failed']
exceptionFormat = 'full'
}
}
tasks.withType(Javadoc).configureEach {
// Until we do a cleanup of javadoc errors, the build (and specifically the javadoc task) fails on Java 11
// and higher. Preventing that until the cleanup can occur.
failOnError = false
// Ignores warnings on param tags with no descriptions. Will remove this once javadoc errors are addressed.
// Until then, it's just a lot of noise.
options.addStringOption('Xdoclint:none', '-quiet')
}
}