Skip to content

Commit

Permalink
Readded shadowjar minimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Sloox authored and mergify-bot committed Sep 16, 2020
1 parent 33ba822 commit 5da920d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 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

0 comments on commit 5da920d

Please sign in to comment.