From b4fe89880cae00df10cc111cd770c2344d026655 Mon Sep 17 00:00:00 2001 From: Elizabeth Worstell Date: Thu, 16 Nov 2023 13:00:00 -0800 Subject: [PATCH] fix: only release generator executable; resolve child POMs --- .github/workflows/release.yml | 3 +- kotlin-runtime/ftl-generator/pom.xml | 28 +++++++------- kotlin-runtime/ftl-runtime/pom.xml | 4 +- pom.xml | 57 +++++++++++++++++++++++++++- 4 files changed, 75 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 05439e64d7..ca69e50b4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -112,8 +112,7 @@ jobs: - name: Publish JARs # Snapshots are published first, then the tagged release run: | mvn -U --batch-mode clean deploy -P release - mvn --batch-mode versions:set -DnewVersion=$(git describe --tags --abbrev=0 | cut -c2-) -DprocessAllModules -DgenerateBackupPoms=false - mvn -U --batch-mode clean deploy -P release + mvn -Drevision=$(git describe --tags --abbrev=0 | cut -c2-) -U --batch-mode clean deploy -P release env: SIGN_KEY_PASS: ${{ secrets.GPG_PASSPHRASE }} OSSRH_USERNAME: ${{ secrets.SONATYPE_USERNAME }} diff --git a/kotlin-runtime/ftl-generator/pom.xml b/kotlin-runtime/ftl-generator/pom.xml index 41bae2619a..626731a825 100644 --- a/kotlin-runtime/ftl-generator/pom.xml +++ b/kotlin-runtime/ftl-generator/pom.xml @@ -7,13 +7,15 @@ xyz.block ftl - 1.0-SNAPSHOT + ${revision} ../../pom.xml ftl-generator jar + ${project.groupId}:${project.artifactId}g + ${basedir}/../.. false @@ -41,25 +43,25 @@ org.apache.maven.plugins - maven-assembly-plugin + maven-shade-plugin + 3.5.1 package - single + shade - - - - xyz.block.ftl.generator.MainKt - - - - jar-with-dependencies - - + + ${project.build.outputDirectory}/${project.artifactId}-${project.version}.jar + + + xyz.block.ftl.generator.MainKt + + + false + org.apache.maven.plugins diff --git a/kotlin-runtime/ftl-runtime/pom.xml b/kotlin-runtime/ftl-runtime/pom.xml index 0430f47033..4c012fb8cd 100644 --- a/kotlin-runtime/ftl-runtime/pom.xml +++ b/kotlin-runtime/ftl-runtime/pom.xml @@ -7,13 +7,15 @@ xyz.block ftl - 1.0-SNAPSHOT + ${revision} ../../pom.xml ftl-runtime jar + ${project.groupId}:${project.artifactId} + ${basedir}/../.. false diff --git a/pom.xml b/pom.xml index f035168bea..bd008b568c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,9 +6,13 @@ xyz.block ftl - 1.0-SNAPSHOT + ${revision} pom + FTL + Towards a 𝝺-calculus for large-scale systems + https://github.com/TBD54566975/ftl + The Apache License, Version 2.0 @@ -16,6 +20,24 @@ + + + Alec Thomas + TBD + https://github.com/TBD54566975 + + + Wes Billman + TBD + https://github.com/TBD54566975 + + + Elizabeth Worstell + TBD + https://github.com/TBD54566975 + + + scm:git:git://github.com/TBD54566975/ftl.git scm:git:ssh://github.com/TBD54566975/ftl.git @@ -38,6 +60,7 @@ 1.4.8 5.10.0 7.4 + 1.0-SNAPSHOT @@ -294,6 +317,38 @@ + + org.codehaus.mojo + flatten-maven-plugin + 1.5.0 + + + flatten + process-resources + + flatten + + + + flatten.clean + clean + + clean + + + + + ossrh + + + + org.apache.maven.plugins + maven-install-plugin + 3.1.1 + + .flattened-pom.xml + + org.apache.maven.plugins maven-release-plugin