commit cd9f4d08ffcfc272f509f2c01111ee49030b6430 parent 532a49ff9852c0ad428f5374dd214c93a5f1c113 Author: Antoine A <> Date: Wed, 21 Aug 2024 20:14:40 +0200 common: enable jar minimization Diffstat:
| M | bank/build.gradle | | | 7 | +++---- |
| M | nexus/build.gradle | | | 11 | +++++++++-- |
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/bank/build.gradle b/bank/build.gradle @@ -45,13 +45,12 @@ application { } shadowJar { - /*minimize { //TODO enable again when we have more time to test it + minimize { // Kotlin serialization exclude(dependency("io.ktor:ktor-serialization-kotlinx-json:.*")) - // Postgres driver - exclude(dependency("org.postgresql:postgresql:.*")) + // Postgres unix socket driver exclude(dependency("com.kohlschutter.junixsocket:junixsocket-core:.*")) // Logging exclude(dependency("ch.qos.logback:logback-classic:.*")) - }*/ + } } \ No newline at end of file diff --git a/nexus/build.gradle b/nexus/build.gradle @@ -51,6 +51,13 @@ application { applicationName = "libeufin-nexus" } -run { - standardInput = System.in +shadowJar { + minimize { + // Kotlin serialization + exclude(dependency("io.ktor:ktor-serialization-kotlinx-json:.*")) + // Postgres unix socket driver + exclude(dependency("com.kohlschutter.junixsocket:junixsocket-core:.*")) + // Logging + exclude(dependency("ch.qos.logback:logback-classic:.*")) + } } \ No newline at end of file