-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathbuild.gradle
More file actions
36 lines (31 loc) · 753 Bytes
/
build.gradle
File metadata and controls
36 lines (31 loc) · 753 Bytes
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
plugins {
id "com.diffplug.spotless" version "7.2.1" apply false
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
}
}
subprojects {
apply plugin: "com.diffplug.spotless"
spotless {
java {
target 'src/**/*.java'
removeUnusedImports()
//importOrder()
}
}
}
// DISABLES JAVADOC ULTRACHECKS IN JDK8
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
if (hasProperty("ci") && !version.endsWith("-SNAPSHOT")) {
version += "-SNAPSHOT"
}