[example] use the Gradle application plugin instead of shadowJar

This commit is contained in:
Emanuele Palazzetti 2017-07-31 18:57:29 +02:00
parent c71bc1bb78
commit afa60efcdf
1 changed files with 2 additions and 14 deletions

View File

@ -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'
}