-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
69 lines (60 loc) · 1.85 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
59
60
61
62
63
64
65
66
67
68
69
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'com.diffplug.spotless' version '6.25.0'
id 'net.ltgt.errorprone' version '4.1.0'
}
group 'io.github.eisopux'
version '0.2.0'
repositories {
mavenCentral()
}
configurations {
requireJavadoc
}
dependencies {
implementation 'io.github.eisop:checker:3.42.0-eisop4'
implementation 'org.eclipse.lsp4j:org.eclipse.lsp4j:0.23.1'
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'commons-cli:commons-cli:1.9.0'
implementation 'com.google.guava:guava:33.3.1-jre'
testImplementation 'junit:junit:4.13.2'
errorprone('com.google.errorprone:error_prone_core:2.31.0')
errorproneJavac('com.google.errorprone:javac:9+181-r4173-1')
requireJavadoc('org.plumelib:require-javadoc:1.0.9')
}
task requireJavadoc(type: JavaExec, group: 'Documentation') {
description = 'Ensures that Javadoc documentation exists in source code.'
mainClass = 'org.plumelib.javadoc.RequireJavadoc'
classpath = configurations.requireJavadoc
args 'src/main/java'
}
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()
}
}