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
30 lines (25 loc) · 842 Bytes
/
build.gradle
File metadata and controls
30 lines (25 loc) · 842 Bytes
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
plugins {
id 'java'
}
// Uncomment the following lines to work with a local copy of vonage-java-sdk:
// configurations.all {
// resolutionStrategy.dependencySubstitution {
// substitute module("com.nexmo:client") with project(":client")
// }
// }
repositories {
mavenCentral()
}
dependencies {
testImplementation 'junit:junit:4.12'
implementation 'com.nexmo:client:5.6.0'
implementation "com.sparkjava:spark-core:2.6.0"
implementation 'javax.xml.bind:jaxb-api:2.3.0'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9'
}
task fatJar(type: Jar, dependsOn:configurations.runtimeClasspath) {
archiveBaseName = project.name + '-with-dependencies'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
assemble.dependsOn fatJar