forked from Vonage/vonage-java-code-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
39 lines (32 loc) · 1.14 KB
/
build.gradle
File metadata and controls
39 lines (32 loc) · 1.14 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
plugins {
id 'java'
}
// Uncomment the following lines to work with a local copy of vonage-java-sdk:
// configurations.all {
// resolutionStrategy.dependencySubstitution {
// substitute module("com.vonage:client") with project(":client")
// }
// }
repositories {
mavenCentral()
}
dependencies {
testImplementation 'junit:junit:4.13.2'
implementation 'com.vonage:client:6.+'
implementation 'com.nexmo:jwt:1.0.1'
implementation 'com.sparkjava:spark-core:2.9.3'
implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.3'
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
}
task fatJar(type: Jar, dependsOn:configurations.runtimeClasspath) {
archiveBaseName = project.name + '-with-dependencies'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
assemble.dependsOn fatJar
sourceCompatibility = "11"
targetCompatibility = "11"