From afa60efcdfca6eb2252758fdb51c21043039176f Mon Sep 17 00:00:00 2001 From: Emanuele Palazzetti Date: Mon, 31 Jul 2017 18:57:29 +0200 Subject: [PATCH] [example] use the Gradle application plugin instead of shadowJar --- dd-trace-examples/rest-spark/rest-spark.gradle | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/dd-trace-examples/rest-spark/rest-spark.gradle b/dd-trace-examples/rest-spark/rest-spark.gradle index ccf0b5865b..a24ebe4922 100644 --- a/dd-trace-examples/rest-spark/rest-spark.gradle +++ b/dd-trace-examples/rest-spark/rest-spark.gradle @@ -1,12 +1,10 @@ -plugins { - id "com.github.johnrengelman.shadow" version "2.0.1" -} - +apply plugin: 'application' apply from: "${rootDir}/gradle/java.gradle" apply from: "${rootDir}/gradle/jacoco.gradle" version = 'demo' description = 'rest-spark' +mainClassName = 'com.datadoghq.example.restspark.SparkApplication' sourceCompatibility = 1.8 targetCompatibility = 1.8 @@ -25,16 +23,6 @@ dependencies { compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25' } -jar { - manifest { - attributes 'Main-Class': 'com.datadoghq.example.restspark.SparkApplication' - } -} - -shadowJar { - mergeServiceFiles() -} - task wrapper(type: Wrapper) { gradleVersion = '4.0' }