-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
44 lines (37 loc) · 1.02 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
plugins {
id 'java'
id "com.diffplug.spotless" version "5.16.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation 'junit:junit:4.13.1'
testImplementation('org.junit.jupiter:junit-jupiter:5.6.0')
implementation 'com.google.code.gson:gson:2.8.8'
implementation 'org.mnode.ical4j:ical4j:3.1.0'
implementation 'org.jsoup:jsoup:1.14.3'
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
}
spotless {
// optional: limit format enforcement to just the files changed by this feature branch
ratchetFrom 'origin/main'
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithTabs() // or spaces. Takes an integer argument if you don't like 4
endWithNewline()
}
java {
// don't need to set target, it is inferred from java
// apply a specific flavor of google-java-format
googleJavaFormat('1.8').aosp().reflowLongStrings()
}
}
test {
testLogging {
events "passed", "skipped", "failed"
}
}