[example] dropwizard uses Gradle packaging

This commit is contained in:
Emanuele Palazzetti 2017-08-04 13:25:59 +02:00
parent 924b1d5537
commit d894c8cddb
No known key found for this signature in database
GPG Key ID: F4D8F69FEF18A502
1 changed files with 5 additions and 14 deletions

View File

@ -1,12 +1,13 @@
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 = 'dropwizard-mongo-client'
mainClassName = 'com.datadoghq.example.dropwizard.BookApplication'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile project(':dd-trace-annotations')
@ -19,16 +20,6 @@ dependencies {
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.7.0'
}
jar {
manifest {
attributes 'Main-Class': 'com.example.helloworld.HelloWorldApplication'
}
}
shadowJar {
mergeServiceFiles()
}
task wrapper(type: Wrapper) {
gradleVersion = '4.0'
}