[example] dropwizard uses Gradle packaging
This commit is contained in:
parent
924b1d5537
commit
d894c8cddb
|
@ -1,12 +1,13 @@
|
||||||
plugins {
|
apply plugin: 'application'
|
||||||
id "com.github.johnrengelman.shadow" version "2.0.1"
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "${rootDir}/gradle/java.gradle"
|
apply from: "${rootDir}/gradle/java.gradle"
|
||||||
apply from: "${rootDir}/gradle/jacoco.gradle"
|
apply from: "${rootDir}/gradle/jacoco.gradle"
|
||||||
|
|
||||||
version = 'demo'
|
version = 'demo'
|
||||||
description = 'dropwizard-mongo-client'
|
description = 'dropwizard-mongo-client'
|
||||||
|
mainClassName = 'com.datadoghq.example.dropwizard.BookApplication'
|
||||||
|
|
||||||
|
sourceCompatibility = 1.8
|
||||||
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':dd-trace-annotations')
|
compile project(':dd-trace-annotations')
|
||||||
|
@ -19,16 +20,6 @@ dependencies {
|
||||||
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.7.0'
|
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) {
|
task wrapper(type: Wrapper) {
|
||||||
gradleVersion = '4.0'
|
gradleVersion = '4.0'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue