-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (40 loc) · 1.04 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'java'
id 'checkstyle'
}
group = 'io.cjlee'
version = '1.0-SNAPSHOT'
subprojects {
apply plugin: 'java'
apply plugin: 'checkstyle'
repositories {
mavenCentral()
}
dependencies {
implementation 'ch.qos.logback:logback-classic:1.4.14'
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
testImplementation 'org.assertj:assertj-core:3.24.2'
}
test {
useJUnitPlatform()
dependsOn('checkstyleMain', 'checkstyleTest')
}
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
tasks.withType(Checkstyle) {
reports {
xml.required = true
html.required = true
}
}
checkstyle {
configFile = file("${project.rootDir}/checkstyle/checkstyle.xml")
configProperties = ["suppressionsXml": "$rootDir/checkstyle/suppressions.xml"]
}
}