From 854cf7c38c2168e150732370ad6d18e94cf5bcbf Mon Sep 17 00:00:00 2001 From: Sloox Date: Tue, 1 Sep 2020 11:41:00 +0200 Subject: [PATCH] Added options to minimize the shadowJar process --- test_runner/build.gradle.kts | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/test_runner/build.gradle.kts b/test_runner/build.gradle.kts index 21aa950a92..b0730a8315 100644 --- a/test_runner/build.gradle.kts +++ b/test_runner/build.gradle.kts @@ -27,10 +27,24 @@ shadowJar.apply { archiveClassifier.set("") archiveBaseName.set(artifactID) mergeServiceFiles() + minimize { + exclude(dependency(Libs.KOTLIN_REFLECT)) + exclude(dependency(Libs.JACKSON_XML)) + exclude(dependency(Libs.JACKSON_DATABIND)) + exclude(dependency(Libs.JACKSON_KOTLIN)) + exclude(dependency(Libs.JACKSON_YAML)) + exclude(dependency(Libs.GSON)) + } @Suppress("UnstableApiUsage") manifest { attributes(mapOf("Main-Class" to "ftl.Main")) } + dependencies { + exclude(dependency(Libs.TRUTH)) + exclude(dependency(Libs.MOCKK)) + exclude(dependency(Libs.JUNIT)) + exclude(dependency(Libs.DETEKT_FORMATTING)) + } } // https://bintray.com/flank/maven @@ -135,8 +149,8 @@ detekt { // Kotlin dsl tasks.withType { - // Target version of the generated JVM bytecode. It is used for type resolution. - this.jvmTarget = "1.8" + // Target version of the generated JVM bytecode. It is used for type resolution. + this.jvmTarget = "1.8" } // http://www.eclemma.org/jacoco/ @@ -171,6 +185,7 @@ application { repositories { maven(url = "http://dl.bintray.com/kotlin/ktor") maven(url = "https://dl.bintray.com/kotlin/kotlinx") + google() jcenter() } @@ -185,7 +200,6 @@ tasks.withType { dependencies { implementation(Libs.BUGSNAG) - implementation(Libs.DD_PLIST) implementation(Libs.DEX_TEST_PARSER)