forked from loklak/loklak_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
166 lines (148 loc) · 7.53 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
}
}
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'eclipse'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets.main.java.srcDirs = ['src']
sourceSets.main.resources.srcDirs = ['res']
sourceSets.test.java.srcDirs = ['test']
checkstyle {
configFile = file("${project.rootDir}/conf/checkstyle.xml")
toolVersion = '7.7'
showViolations = false
}
jar {
manifest {
attributes 'Main-Class': 'org.loklak.LoklakServer'
}
}
shadowJar {
mergeServiceFiles()
from('conf') {
into 'conf'
}
from('html') {
into 'html'
}
from('installation') {
into 'installation'
}
from('ssi') {
into 'ssi'
}
}
assemble.dependsOn shadowJar
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.antlr', name: 'antlr-runtime', version: '3.5'
compile group: 'org.ow2.asm', name: 'asm', version: '4.1'
compile group: 'org.ow2.asm', name: 'asm-commons', version: '4.1'
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.54'
compile group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.54'
compile group: 'com.robbypond', name: 'boilerpipe', version: '1.2.3'
compile group: 'commons-cli', name: 'commons-cli', version: '1.3.1'
compile group: 'commons-logging', name: 'commons-logging', version: '1.2'
compile group: 'com.github.spullara.mustache.java', name: 'compiler', version: '0.8.13'
compile group: 'com.ning', name: 'compress-lzf', version: '1.0.2'
compile group: 'org.elasticsearch', name: 'elasticsearch', version: '2.4.0'
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.4'
compile group: 'com.google.guava', name: 'guava', version: '18.0'
compile group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3'
compile group: 'org.hdrhistogram', name: 'HdrHistogram', version: '2.1.6'
compile group: 'com.carrotsearch', name: 'hppc', version: '0.7.1'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.3'
compile group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.8'
compile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.5.3'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.1'
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-cbor', version: '2.8.1'
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-smile', version: '2.8.1'
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.8.1'
compile group: 'com.sun.mail', name: 'javax.mail', version: '1.5.5'
compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
compile group: 'net.sf.jcommon', name: 'jcommon', version: '1.0.1'
compile group: 'org.jdom', name: 'jdom', version: '1.1.3'
compile group: 'org.eclipse.jetty', name: 'jetty-http', version: '9.3.11.v20160721'
compile group: 'org.eclipse.jetty', name: 'jetty-io', version: '9.3.11.v20160721'
compile group: 'org.eclipse.jetty', name: 'jetty-rewrite', version: '9.3.11.v20160721'
compile group: 'org.eclipse.jetty', name: 'jetty-security', version: '9.3.11.v20160721'
compile group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.3.11.v20160721'
compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.3.11.v20160721'
compile group: 'org.eclipse.jetty', name: 'jetty-servlets', version: '9.3.11.v20160721'
compile group: 'org.eclipse.jetty', name: 'jetty-util', version: '9.3.11.v20160721'
compile group: 'org.eclipse.jetty', name: 'jetty-webapp', version: '9.3.11.v20160721'
compile group: 'org.eclipse.jetty', name: 'jetty-eventsource-servlet', version: '1.0.0'
compile group: 'org.jfree', name: 'jfreechart', version: '1.0.19'
compile group: 'net.java.dev.jna', name: 'jna', version: '4.1.0'
compile group: 'org.joda', name: 'joda-convert', version: '1.2'
compile group: 'joda-time', name: 'joda-time', version: '2.9.4'
compile group: 'com.github.fge', name: 'json-schema-validator', version: '2.2.6'
compile group: 'org.jsoup', name: 'jsoup', version: '1.9.2'
compile group: 'com.twitter', name: 'jsr166e', version: '1.1.0'
compile group: 'com.vividsolutions', name: 'jts', version: '1.13'
compile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.apache.logging.log4j', name: 'log4j-1.2-api', version: '2.6.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.6.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.6.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.6.2'
compile group: 'org.apache.lucene', name: 'lucene-analyzers-common', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-backward-codecs', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-core', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-grouping', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-highlighter', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-join', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-memory', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-misc', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-queries', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-queryparser', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-sandbox', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-spatial', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-spatial3d', version: '5.5.2'
compile group: 'org.apache.lucene', name: 'lucene-suggest', version: '5.5.2'
compile group: 'net.sourceforge.nekohtml', name: 'nekohtml', version: '1.9.17'
compile group: 'io.netty', name: 'netty', version: '3.10.6.Final'
compile group: 'rome', name: 'rome', version: '1.0'
compile group: 'org.elasticsearch', name: 'securesm', version: '1.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21'
compile group: 'org.yaml', name: 'snakeyaml', version: '1.15'
compile group: 'com.spatial4j', name: 'spatial4j', version: '0.5'
compile group: 'com.tdunning', name: 't-digest', version: '3.0'
compile group: 'org.twitter4j', name: 'twitter4j-core', version: '4.0.2'
compile group: 'org.twitter4j', name: 'twitter4j-stream', version: '4.0.2'
compile group: 'xerces', name: 'xerces', version: '2.4.0'
compile group: 'org.unbescape', name: 'unbescape', version: '1.0'
compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0'
}
tasks.withType(Javadoc) {
options.addBooleanOption('Xdoclint:none', true)
}
task setup(type: JavaExec, dependsOn: classes) {
main = 'org.loklak.LoklakInstallation'
classpath sourceSets.main.runtimeClasspath
classpath configurations.runtime
}
task start(type: JavaExec, dependsOn: classes) {
main = 'org.loklak.LoklakServer'
classpath sourceSets.main.runtimeClasspath
classpath configurations.runtime
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
check.dependsOn jacocoTestReport
task stage(dependsOn: ['build', 'clean'])
build.mustRunAfter clean