-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
58 lines (49 loc) · 1.5 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
55
56
57
58
plugins {
id 'java'
id 'application'
// https://plugins.gradle.org/plugin/com.gradleup.shadow
id 'com.gradleup.shadow' version '8.3.5'
id 'com.diffplug.spotless' version '7.0.2'
id 'net.ltgt.errorprone' version '4.1.0'
}
group = 'io.github.eisopux'
version = '0.3.0'
repositories {
mavenCentral()
}
dependencies {
implementation 'commons-io:commons-io:2.18.0'
implementation 'net.lingala.zip4j:zip4j:2.11.5'
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'commons-cli:commons-cli:1.9.0'
testImplementation 'junit:junit:4.13.2'
if (JavaVersion.current() >= JavaVersion.VERSION_17) {
errorprone('com.google.errorprone:error_prone_core:2.36.0')
errorproneJavac('com.google.errorprone:javac:9+181-r4173-1')
}
}
application {
// Define the main class for the application
mainClass = 'org.checkerframework.languageserver.DownloaderMain'
}
shadowJar {
minimize()
}
tasks.withType(JavaCompile) { compilationTask ->
options.compilerArgs += ['-Xlint', '-Werror']
options.errorprone.enabled = JavaVersion.current() >= JavaVersion.VERSION_17
}
spotless {
java {
googleJavaFormat().aosp()
importOrder('com', 'jdk', 'lib', 'lombok', 'org', 'java', 'javax')
formatAnnotations()
}
groovyGradle {
target '*.gradle'
importOrder()
greclipse() // which formatter Spotless should use to format .gradle files.
indentWithSpaces(4)
trimTrailingWhitespace()
}
}