Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Java App Packaging for non-Docker envs #119

Merged
merged 1 commit into from
Jan 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,12 @@ required. Before running a release make sure the following pre-req's are met.

## Change log

0.6.0

* Add Metadata poll timer metric `kafka_consumergroup_poll_time_ms` [#105](https://github.com/lightbend/kafka-lag-exporter/pull/105) ([@anbarasantr](https://github.com/anbarasantr))
* Bugfix: Bypass prediction when consumer group is caught up. Reported in [#111](https://github.com/lightbend/kafka-lag-exporter/issues/111) ([@rkrage](https://github.com/rkrage)).
* Publish Java App Packaging for non-Docker envs [#119](https://github.com/lightbend/kafka-lag-exporter/pull/119)

0.5.5

* Add kafka topic blacklist [#90](https://github.com/lightbend/kafka-lag-exporter/pull/90) ([@drrzmr](https://github.com/drrzmr))
Expand Down
12 changes: 11 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -101,6 +102,7 @@ lazy val commonSettings = Seq(
"-language:_",
"-unchecked"
),
maintainer := "sean.glover@lightbend.com",
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>",
Expand Down Expand Up @@ -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
})
Expand All @@ -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(packageBin in Universal in ref, st)
}
)