-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (33 loc) · 831 Bytes
/
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
plugins {
id 'java-library'
id 'checkstyle'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
allprojects {
apply plugin: 'java-library'
apply plugin: 'checkstyle'
checkstyle {
configFile = rootProject.file('checkstyle.xml')
toolVersion = rootProject.checkstyle_version
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
}
repositories {
mavenCentral()
}
dependencies {
api "org.slf4j:slf4j-api:${project.slf4j_version}"
api "org.jetbrains:annotations:${jetbrains_annotations_version}"
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = 'UTF-8'
it.options.release = 17
}
}