42 lines
934 B
Groovy
42 lines
934 B
Groovy
plugins {
|
|
id "com.github.johnrengelman.shadow" version "2.0.4"
|
|
}
|
|
|
|
apply plugin: 'application'
|
|
apply from: "${rootDir}/gradle/java.gradle"
|
|
|
|
version = 'demo'
|
|
description = 'dropwizard-mongo-client'
|
|
mainClassName = 'datadog.example.dropwizard.BookApplication'
|
|
applicationDefaultJvmArgs = ["-Ddd.service.name=dropwizard-example"]
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
dependencies {
|
|
compile project(':dd-trace-ot')
|
|
compile project(':dd-trace-api')
|
|
|
|
compile deps.opentracing
|
|
|
|
compile group: 'io.dropwizard', name: 'dropwizard-core', version: '0.9.2'
|
|
compile group: 'org.mongodb', name: 'mongo-java-driver', version: '3.4.2'
|
|
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.7.0'
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes 'Main-Class': 'datadog.example.dropwizard.BookApplication'
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
mergeServiceFiles()
|
|
}
|
|
|
|
|
|
task wrapper(type: Wrapper) {
|
|
gradleVersion = gradleWrapperVersion
|
|
}
|