-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
51 lines (42 loc) · 1.32 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
plugins {
id 'java'
id "org.jetbrains.kotlin.jvm" version "1.4.31"
}
group 'sleet'
version '0.5.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
ext {
kotlinVersion = '1.4.31'
jacksonVersion = '2.12.2'
ASYNC_HTTP_CLIENT = "org.asynchttpclient:async-http-client:2.12.2"
APACHE_COMMONS = "org.apache.commons:commons-lang3:3.11"
KOTLIN_DEPS = [
"org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion",
"org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
]
JACKSON_DEPS = [
"com.fasterxml.jackson.core:jackson-core:$jacksonVersion",
"com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion",
"com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
]
}
configurations {
// configuration that holds extra deps to include in the sleet jar for consumers
extraLibs
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
extraLibs ASYNC_HTTP_CLIENT, APACHE_COMMONS, JACKSON_DEPS
compile ASYNC_HTTP_CLIENT, APACHE_COMMONS, JACKSON_DEPS
implementation KOTLIN_DEPS
implementation group: 'org.java-websocket', name: 'Java-WebSocket', version: '1.5.1'
}
jar {
from {
configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
}