forked from jspecify/jspecify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (34 loc) · 962 Bytes
/
Copy pathbuild.gradle
File metadata and controls
43 lines (34 loc) · 962 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
37
38
39
40
41
42
43
plugins {
id 'java-library'
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0' apply false
id 'com.diffplug.spotless' version '6.14.0'
id 'net.ltgt.errorprone' version '3.0.1'
}
ext {
junitVersion = '5.8.2'
errorproneVersion = '2.18.0'
}
repositories { mavenCentral() }
apply from: "gradle/mrjar.gradle"
apply from: "gradle/integration-test.gradle"
apply from: "gradle/format.gradle"
apply from: "gradle/publish.gradle"
dependencies {
errorprone "com.google.errorprone:error_prone_core:${errorproneVersion}"
}
java {
if (JavaVersion.current() > JavaVersion.VERSION_14) {
withJavadocJar()
}
withSourcesJar()
sourceCompatibility 8
targetCompatibility 8
// but compile against newer JDK libraries so that we can use @Target({..., MODULE})
tasks.named('sourcesJar') {
exclude('**.class')
}
}
javadoc {
options.encoding = 'UTF-8'
}
defaultTasks 'spotlessApply', 'build'