Skip to content

Commit 0cdbe78

Browse files
Merge pull request #2 from Nexmo/update-build-config
Updated build.gradle to match Vonage
2 parents 37e3ade + 6cb6284 commit 0cdbe78

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

build.gradle

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
plugins {
2+
id 'java'
3+
}
14

2-
apply plugin: 'java'
3-
4-
// Uncomment the following lines to work with a local copy of nexmo-java:
5+
// Uncomment the following lines to work with a local copy of vonage-java-sdk:
56
// configurations.all {
67
// resolutionStrategy.dependencySubstitution {
78
// substitute module("com.nexmo:client") with project(":client")
@@ -13,16 +14,17 @@ repositories {
1314
}
1415

1516
dependencies {
16-
testCompile 'junit:junit:4.12'
17+
testImplementation 'junit:junit:4.12'
1718

18-
compile 'com.nexmo:client:5.2.0'
19-
compile "com.sparkjava:spark-core:2.6.0"
20-
compile 'javax.xml.bind:jaxb-api:2.3.0'
19+
implementation 'com.nexmo:client:5.6.0'
20+
implementation "com.sparkjava:spark-core:2.6.0"
21+
implementation 'javax.xml.bind:jaxb-api:2.3.0'
22+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9'
2123
}
2224

23-
task fatJar(type: Jar, dependsOn:configurations.runtime) {
24-
baseName = project.name + '-with-dependencies'
25-
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
25+
task fatJar(type: Jar, dependsOn:configurations.runtimeClasspath) {
26+
archiveBaseName = project.name + '-with-dependencies'
27+
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
2628
with jar
2729
}
2830
assemble.dependsOn fatJar

0 commit comments

Comments
 (0)