-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (48 loc) · 1.32 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
plugins {
id 'application'
id "com.diffplug.spotless" version "6.2.0"
}
apply plugin: 'application'
mainClassName = 'com.tinyTines.TinyTinesApp'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'org.junit.jupiter:junit-jupiter:5.4.2'
implementation 'jakarta.mail:jakarta.mail-api:2.1.1'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:4.3.1'
}
spotless {
java {
target project.fileTree(dir: 'src', include: '**/*.java')
indentWithSpaces()
trimTrailingWhitespace()
replaceRegex 'Remove empty lines before end of block', '\\n[\\n]+(\\s*})(?=\\n)', '\n$1'
replaceRegex 'Remove trailing empty comment lines.', '\n\\s*\\*(\n\\s*\\*/\n)', '$1'
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
'Main-Class': mainClassName
)
}
from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
useJUnitPlatform()
}
tasks.withType(Test) {
useJUnitPlatform()
}