-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
52 lines (44 loc) · 1.09 KB
/
build.gradle
File metadata and controls
52 lines (44 loc) · 1.09 KB
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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'uk.co.fivium'
version = 'SNAPSHOT'
java {
sourceCompatibility = '8'
}
repositories {
mavenCentral()
}
dependencies {
implementation (
'fi.solita.clamav:clamav-client:1.0.1',
'com.zaxxer:HikariCP-java6:2.3.13',
'ch.qos.logback:logback-classic:1.5.18',
'commons-io:commons-io:2.19.0',
'org.subethamail:subethasmtp:3.1.7',
'com.beetstra.jutf7:jutf7:1.0.0',
'com.oracle.database.jdbc:ojdbc6:11.2.0.4',
'org.nanohttpd:nanohttpd:2.3.1'
)
testImplementation (
'junit:junit:4.13.2',
'com.github.stefanbirkner:system-lambda:1.2.1'
)
}
shadowJar {
archiveFileName.set("${rootProject.name}.jar")
}
jar {
manifest {
attributes 'Main-Class': 'uk.co.fivium.dmda.server.SMTPStart'
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
// hack to get https://github.com/stefanbirkner/system-lambda working with Java 11+
// should really be removed and replaced with proper ITs
jvmArgs '--add-opens', 'java.base/java.util=ALL-UNNAMED', '--add-opens', 'java.base/java.lang=ALL-UNNAMED'
}