-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
63 lines (47 loc) · 1.37 KB
/
build.gradle
File metadata and controls
63 lines (47 loc) · 1.37 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
53
54
55
56
57
58
59
60
61
62
63
plugins {
id 'java'
id 'application'
}
group 'org.shardav'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
application {
mainClassName = "org.shardav.server.Server"
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
// Include all libraries in the lib folder.
implementation fileTree(dir:'libs', include:['*.jar'])
// Libraries for GMail
implementation 'com.google.api-client:google-api-client:1.23.0'
implementation 'com.google.oauth-client:google-oauth-client-jetty:1.23.0'
implementation 'com.google.apis:google-api-services-gmail:v1-rev83-1.23.0'
// Libraries for creating mail in Java
implementation 'com.sun.mail:javax.mail:1.6.2'
// Include the mysql-connector from maven
implementation 'mysql:mysql-connector-java:8.0.20'
// G-SON library
implementation 'com.google.code.gson:gson:2.8.6'
}
jar {
manifest{
attributes(
"Implementation-Title": "Server",
"Implemenation-Version": 1.0,
"Main-Class":"org.shardav.server.Server",
)
}
from {
configurations.compile.collect {it.isDirectory() ? it : zipTree(it)}
}
exclude('org/shardav/server/testing/**')
}
run {
standardInput = System.in
}
compileJava {
options.compilerArgs += ["-Xlint:unchecked"]
}