Skip to content

Commit

Permalink
chore: remote FTL root POM; ftl-runtime POM is standalone
Browse files Browse the repository at this point in the history
fixes #1019
  • Loading branch information
worstell committed Mar 14, 2024
1 parent 697def2 commit f4cd9cd
Show file tree
Hide file tree
Showing 4 changed files with 368 additions and 460 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ jobs:
cache: "maven"
- name: Publish JARs # Snapshots are published first, then the tagged release
run: |
mvn -U -B clean deploy -P release
mvn -B versions:set -DnewVersion="$(git describe --tags --abbrev=0 | cut -c2-)" -DprocessAllModules -DgenerateBackupPoms=false
mvn -U -B clean deploy -P release
mvn -f kotlin-runtime/ftl-runtime -U -B clean deploy -P release
mvn -f kotlin-runtime/ftl-runtime -B versions:set -DnewVersion="$(git describe --tags --abbrev=0 | cut -c2-)" -DprocessAllModules -DgenerateBackupPoms=false
mvn -f kotlin-runtime/ftl-runtime -U -B clean deploy -P release
git clean -f ./*.flattened_pom.xml
env:
SIGN_KEY_PASS: ${{ secrets.GPG_PASSPHRASE }}
Expand Down
7 changes: 3 additions & 4 deletions Bitfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ PROTO_OUT = backend/protos/xyz/block/ftl/v1/ftlv1connect/ftl.connect.go \
COMMON_LOG_IN = internal/log/api.go
COMMON_LOG_OUT = internal/log/log_level_string.go

KT_RUNTIME_IN = kotlin-runtime/ftl-runtime/**/*.{kt,kts} pom.xml kotlin-runtime/ftl-runtime/**/pom.xml
KT_RUNTIME_IN = kotlin-runtime/ftl-runtime/**/*.{kt,kts} kotlin-runtime/ftl-runtime/**/pom.xml
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

Expand Down Expand Up @@ -113,9 +113,8 @@ kotlin-runtime/external-module-template.zip: kotlin-runtime/external-module-temp
%{KT_RUNTIME_OUT}: %{KT_RUNTIME_IN} %{PROTO_IN}
# TODO: Figure out how to make Maven build completely offline. Bizarrely "-o" does not do this.
build:
mvn -B -N install
mvn -Dmaven.test.skip=true -B -pl :ftl-runtime install
+clean: mvn -B -pl :ftl-runtime clean
mvn -Dmaven.test.skip=true -B -f kotlin-runtime/ftl-runtime install
+clean: mvn -B -f kotlin-runtime/ftl-runtime install clean

%(dirname %{KT_RUNTIME_RUNNER_TEMPLATE_OUT})%:
build: install -m 0700 -d %{OUT}
Expand Down
Loading

0 comments on commit f4cd9cd

Please sign in to comment.