Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Added options to minimize the shadowJar process #1071

Merged
merged 1 commit into from
Sep 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions test_runner/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -135,8 +149,8 @@ detekt {

// Kotlin dsl
tasks.withType<io.gitlab.arturbosch.detekt.Detekt> {
// 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/
Expand Down Expand Up @@ -171,6 +185,7 @@ application {
repositories {
maven(url = "http://dl.bintray.com/kotlin/ktor")
maven(url = "https://dl.bintray.com/kotlin/kotlinx")
google()
jcenter()
}

Expand All @@ -185,7 +200,6 @@ tasks.withType<Test> {

dependencies {
implementation(Libs.BUGSNAG)

implementation(Libs.DD_PLIST)
implementation(Libs.DEX_TEST_PARSER)

Expand Down