plugins { id "com.github.johnrengelman.shadow" } apply from: "${rootDir}/gradle/java.gradle" description = 'Command Line Application Smoke Tests.' jar { manifest { attributes( 'Main-Class': 'io.opentelemetry.smoketest.cli.CliApplication' ) } } dependencies { compile group: 'io.opentelemetry', name: 'opentelemetry-api', version: '0.2.0' testCompile project(':smoke-tests') } tasks.withType(Test).configureEach { dependsOn shadowJar jvmArgs "-Dio.opentelemetry.smoketest.cli.shadowJar.path=${tasks.shadowJar.archivePath}" }