forked from fossasia/susi_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
70 lines (57 loc) · 2.21 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
59
60
61
62
63
64
65
66
67
68
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'com.github.johnrengelman.shadow'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets.main.java.srcDirs = ['src']
sourceSets.main.resources.srcDirs = ['conf/logs']
jar {
manifest {
attributes 'Main-Class': 'ai.susi.SusiServer'
}
}
shadowJar {
mergeServiceFiles()
}
assemble.dependsOn shadowJar
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '18.+'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.+'
compile group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.+'
compile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.+'
compile group: 'com.sun.mail', name: 'javax.mail', version: '1.+'
compile group: 'org.eclipse.jetty', name: 'jetty-rewrite', version: '9.3.+'
compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.3.+'
compile group: 'org.eclipse.jetty', name: 'jetty-webapp', version: '9.3.+'
compile group: 'org.joda', name: 'joda-convert', version: '1.+'
compile group: 'joda-time', name: 'joda-time', version: '2.+'
compile group: 'org.jsoup', name: 'jsoup', version: '1.+'
compile group: 'junit', name: 'junit', version: '4.+'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.+'
compile group: 'rome', name: 'rome', version: '1.+'
compile group: 'it.unibo.alice.tuprolog', name: 'tuprolog', version: '3.+'
compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.+'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.+'
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.+'
compile group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.+'
compile group: 'jfree', name: 'jfreechart', version: '1.+'
}
tasks.withType(Javadoc) {
options.addBooleanOption('Xdoclint:none', true)
}
task start(type: JavaExec, dependsOn: classes) {
main = 'ai.susi.SusiServer'
classpath sourceSets.main.runtimeClasspath
classpath configurations.runtime
}