From 6cb6284549ef1a6307a3ba6c30c8ee11350df316 Mon Sep 17 00:00:00 2001 From: Chris Tankersley Date: Fri, 13 Nov 2020 10:14:28 -0500 Subject: [PATCH] Updated build.gradle to match Vonage --- build.gradle | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index bb360a8..a4a705e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,8 @@ +plugins { + id 'java' +} -apply plugin: 'java' - -// Uncomment the following lines to work with a local copy of nexmo-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") @@ -13,16 +14,17 @@ repositories { } dependencies { - testCompile 'junit:junit:4.12' + testImplementation 'junit:junit:4.12' - compile 'com.nexmo:client:5.2.0' - compile "com.sparkjava:spark-core:2.6.0" - compile 'javax.xml.bind:jaxb-api:2.3.0' + 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.runtime) { - baseName = project.name + '-with-dependencies' - from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } } +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