From b8ae8666706b6eb7eff6bb564b0367841b80998f Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Fri, 10 Nov 2023 13:16:14 +1100 Subject: [PATCH] fix: don't build uber JARs Instead we rely on classpath.txt to include everything we need. --- Bitfile | 2 +- examples/echo-kotlin/pom.xml | 1 - .../services/ad-kotlin/pom.xml | 1 - kotlin-runtime/ftl-runtime/pom.xml | 24 +++---------------- kotlin-runtime/scaffolding/pom.xml | 1 - scripts/integration-tests | 2 +- 6 files changed, 5 insertions(+), 26 deletions(-) diff --git a/Bitfile b/Bitfile index 879823e46e..b7f2b499b4 100644 --- a/Bitfile +++ b/Bitfile @@ -32,7 +32,7 @@ COMMON_LOG_IN = backend/common/log/api.go COMMON_LOG_OUT = backend/common/log/log_level_string.go KT_RUNTIME_IN = kotlin-runtime/ftl-runtime/**/*.{kt,kts} pom.xml kotlin-runtime/ftl-runtime/**/pom.xml -KT_RUNTIME_OUT = kotlin-runtime/ftl-runtime/target/ftl-runtime-1.0-SNAPSHOT-jar-with-dependencies.jar +KT_RUNTIME_OUT = kotlin-runtime/ftl-runtime/target/ftl-runtime-1.0-SNAPSHOT.jar KT_RUNTIME_RUNNER_TEMPLATE_OUT = build/template/ftl/jars/ftl-runtime.jar KT_GENERATOR_IN = kotlin-runtime/ftl-generator/**/*.{kt,kts} pom.xml kotlin-runtime/ftl-runtime/**/pom.xml %{KT_RUNTIME_OUT} diff --git a/examples/echo-kotlin/pom.xml b/examples/echo-kotlin/pom.xml index df11649dc2..78d8c5f409 100644 --- a/examples/echo-kotlin/pom.xml +++ b/examples/echo-kotlin/pom.xml @@ -89,7 +89,6 @@ xyz.block ftl-runtime ${ftl.version} - jar-with-dependencies ftl-runtime.jar diff --git a/examples/online-boutique/services/ad-kotlin/pom.xml b/examples/online-boutique/services/ad-kotlin/pom.xml index 81900e1c97..3f97e8294f 100644 --- a/examples/online-boutique/services/ad-kotlin/pom.xml +++ b/examples/online-boutique/services/ad-kotlin/pom.xml @@ -89,7 +89,6 @@ xyz.block ftl-runtime ${ftl.version} - jar-with-dependencies ftl-runtime.jar diff --git a/kotlin-runtime/ftl-runtime/pom.xml b/kotlin-runtime/ftl-runtime/pom.xml index 0700f41e4d..548079e26b 100644 --- a/kotlin-runtime/ftl-runtime/pom.xml +++ b/kotlin-runtime/ftl-runtime/pom.xml @@ -1,6 +1,6 @@ + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 @@ -76,23 +76,6 @@ org.codehaus.mojo build-helper-maven-plugin - - org.apache.maven.plugins - maven-assembly-plugin - - - package - - single - - - - jar-with-dependencies - - - - - org.apache.maven.plugins maven-surefire-plugin @@ -121,5 +104,4 @@ https://maven.pkg.github.com/TBD54566975/ftl - - + \ No newline at end of file diff --git a/kotlin-runtime/scaffolding/pom.xml b/kotlin-runtime/scaffolding/pom.xml index b495f76f46..4068a27bd7 100644 --- a/kotlin-runtime/scaffolding/pom.xml +++ b/kotlin-runtime/scaffolding/pom.xml @@ -89,7 +89,6 @@ xyz.block ftl-runtime ${ftl.version} - jar-with-dependencies ftl-runtime.jar diff --git a/scripts/integration-tests b/scripts/integration-tests index 5304bf6f49..4de531cc08 100755 --- a/scripts/integration-tests +++ b/scripts/integration-tests @@ -16,7 +16,7 @@ build_release() { bit build/release/ftl-controller \ build/release/ftl-runner \ build/release/ftl \ - kotlin-runtime/ftl-runtime/target/ftl-runtime-1.0-SNAPSHOT-jar-with-dependencies.jar \ + kotlin-runtime/ftl-runtime/target/ftl-runtime-1.0-SNAPSHOT.jar \ kotlin-runtime/ftl-generator/target/ftl-generator-1.0-SNAPSHOT-jar-with-dependencies.jar \ build/template/ftl/jars/ftl-runtime.jar }