plugins { id 'org.springframework.boot' version '1.5.10.RELEASE' } apply from: "${rootDir}/gradle/java.gradle" apply from: "${rootDir}/gradle/jacoco.gradle" version = 'demo' description = 'spring-boot-jdbc-redis' dependencies { compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.3' compile group: 'com.h2database', name: 'h2', version: '1.4.196' compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '1.5.10.RELEASE' compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '1.5.10.RELEASE' compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis', version: '1.5.10.RELEASE' } bootRepackage { mainClass = 'datadog.examples.Application' } bootRun { if (project.hasProperty('javaagent')) { jvmArgs = ["-javaagent:$javaagent", "-Ddd.service.name=spring-boot-jdbc-redis"] } else { jvmArgs = ["-javaagent:${project(':dd-java-agent').tasks.shadowJar.outputs.files.getFiles().iterator().next()}", "-Ddd.service.name=spring-boot-jdbc-redis"] } } task wrapper(type: Wrapper) { gradleVersion = gradleWrapperVersion }