forked from optimizely/java-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (37 loc) · 1.12 KB
/
Copy pathbuild.gradle
File metadata and controls
43 lines (37 loc) · 1.12 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
plugins {
id 'java'
}
group 'optimizely'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
google()
flatDir {
dirs 'libs'
}
}
dependencies {
compile name: 'core-api'
compile name: 'core-httpclient-impl'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
// compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.8'
// compile group: 'org.json', name: 'json', version: '20160212'
// compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
jar {
from (configurations.runtime.resolve().collect { it.isDirectory() ? it : zipTree(it) }) {
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
}
manifest {
attributes(
'Main-Class': 'com.optimizely.Example'
)
}
}