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

Commit

Permalink
Java App Packaging for non-Docker envs
Browse files Browse the repository at this point in the history
  • Loading branch information
seglo committed Jan 26, 2020
1 parent 34130ed commit e3c7004
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
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 := "[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>",
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)
}
)

0 comments on commit e3c7004

Please sign in to comment.