-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
build.gradle
72 lines (60 loc) · 1.53 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
70
71
72
plugins {
id 'java'
id 'checkstyle'
id 'com.diffplug.spotless' version '6.25.0'
}
group = 'com.fishercoder'
version = '1.0-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
tasks.javadoc {
options.encoding = 'UTF-8'
}
tasks.compileJava {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'org.apache.commons:commons-collections4:4.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3'
testImplementation 'org.assertj:assertj-core:3.11.1'
compileOnly 'org.projectlombok:lombok:1.18.32'
annotationProcessor 'org.projectlombok:lombok:1.18.32'
testCompileOnly 'org.projectlombok:lombok:1.18.32'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.32'
}
testing {
suites {
test {
useJUnitJupiter()
}
}
}
tasks.withType(Test).configureEach {
maxParallelForks = Runtime.runtime.availableProcessors()
}
checkstyle {
toolVersion = '6.17'
config = rootProject.resources.text.fromFile('fishercoder_checkstyle.xml')
}
spotless {
java {
encoding 'UTF-8'
target fileTree(projectDir) {
include '**/src/**/*.java'
exclude '**/build/**'
}
importOrder '\\#', '', '*'
removeUnusedImports()
googleJavaFormat('1.22.0').aosp()
toggleOffOn()
endWithNewline()
}
}