This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Java App Packaging for non-Docker envs
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,7 @@ lazy val kafkaLagExporter = | |
updateHelmChartRelease, // Update the Helm Chart | ||
publishDockerImage, // Publish the Docker images used by the chart | ||
packageChart, // Package the Helm Chart | ||
packageJavaApp, // Package the standalone Java App | ||
commitReleaseVersion, | ||
updateReadmeRelease, // Update the README.md with this version | ||
commitReadmeVersion, // Commit the README.md | ||
|
@@ -101,6 +102,7 @@ lazy val commonSettings = Seq( | |
"-language:_", | ||
"-unchecked" | ||
), | ||
maintainer := "[email protected]", | ||
scalacOptions in (Compile, console) := (scalacOptions in (Global)).value.filter(_ == "-Ywarn-unused-import"), | ||
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value, | ||
organizationName := "Lightbend Inc. <http://www.lightbend.com>", | ||
|
@@ -195,7 +197,7 @@ lazy val packageChart = ReleaseStep(action = st => { | |
lazy val githubReleaseDraft = ReleaseStep(action = st => { | ||
val (releaseVersion, _) = st.get(versions).getOrElse(sys.error("No versions are set! Was this release part executed before inquireVersions?")) | ||
exec( | ||
s"./scripts/github_release.sh lightbend/kafka-lag-exporter v$releaseVersion -- kafka-lag-exporter-$releaseVersion.tgz", | ||
s"./scripts/github_release.sh lightbend/kafka-lag-exporter v$releaseVersion -- kafka-lag-exporter-$releaseVersion.tgz ./target/universal/kafka-lag-exporter-$releaseVersion.zip", | ||
"Error while publishing GitHub release draft") | ||
st | ||
}) | ||
|
@@ -206,4 +208,12 @@ lazy val publishDockerImage = ReleaseStep( | |
val ref = extracted.get(thisProjectRef) | ||
extracted.runAggregated(publish in Docker in ref, st) | ||
} | ||
) | ||
|
||
lazy val packageJavaApp = ReleaseStep( | ||
action = { st: State => | ||
val extracted = Project.extract(st) | ||
val ref = extracted.get(thisProjectRef) | ||
extracted.runAggregated(stage in ref, st) | ||
} | ||
) |