-
Notifications
You must be signed in to change notification settings - Fork 72
/
build.gradle
54 lines (45 loc) · 1.73 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
// Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
// We need the properties plugin to work on both marklogic-client-api and test-app. The 'plugins' Gradle syntax can't be
// used for that. So we have to add the properties plugin to the buildscript classpath and then apply the properties
// plugin via subprojects below.
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "net.saliman:gradle-properties-plugin:1.5.2"
}
}
subprojects {
apply plugin: "net.saliman.properties"
apply plugin: 'java'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
// To ensure that the Java Client continues to support Java 8, both source and target compatibility are set to 1.8.
// May adjust this for src/test/java so that tests can take advantage of more expressive functions in Java 9+, such
// as Map.of().
java {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
configurations {
testImplementation.extendsFrom compileOnly
}
repositories {
mavenLocal()
mavenCentral()
}
test {
systemProperty "file.encoding", "UTF-8"
systemProperty "javax.xml.stream.XMLOutputFactory", "com.sun.xml.internal.stream.XMLOutputFactoryImpl"
}
// 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.
javadoc.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.
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
}