forked from eisopux/checker-framework-languageserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (50 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'com.diffplug.spotless' version '6.21.0'
id 'net.ltgt.errorprone' version '3.1.0'
}
group 'io.github.eisopux'
version '0.2.0'
repositories {
mavenCentral()
}
dependencies {
implementation 'io.github.eisop:checker:3.34.0-eisop1'
implementation 'org.eclipse.lsp4j:org.eclipse.lsp4j:0.21.1'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'commons-cli:commons-cli:1.5.0'
implementation 'com.google.guava:guava:32.1.2-jre'
testImplementation 'junit:junit:4.13.2'
errorprone('com.google.errorprone:error_prone_core:2.21.1')
errorproneJavac('com.google.errorprone:javac:9+181-r4173-1')
}
application {
// Define the main class for the application
mainClass = 'org.checkerframework.languageserver.ServerMain'
}
shadowJar {
minimize()
dependencies {
// Minimize does not remove the annotated JDK, properties, and astub files
exclude(dependency('io.github.eisop:checker'))
}
}
tasks.compileJava {
options.compilerArgs += ['-Xlint', '-Werror']
}
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()
}
}