Skip to content

Commit

Permalink
Merge pull request #308 from lmenezes/rpm-and-deb
Browse files Browse the repository at this point in the history
Sbt configuration for creating rpm and deb packages
  • Loading branch information
moliware authored Apr 4, 2019
2 parents 8111136 + 6f43bd0 commit df9f17e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@ name := "cerebro"

maintainer := "Leonardo Menezes <leonardo.menezes@xing.com>"

packageSummary := "Elasticsearch web admin tool"

packageDescription := """cerebro is an open source(MIT License) elasticsearch web admin tool built
using Scala, Play Framework, AngularJS and Bootstrap."""

version := "0.8.2"

scalaVersion := "2.12.8"

rpmVendor := "lmenezes"

rpmLicense := Some("MIT")

rpmUrl := Some("http://github.com/lmenezes/cerebro")

libraryDependencies ++= Seq(
"com.typesafe.play" %% "play" % "2.7.0",
"com.typesafe.play" %% "play-json" % "2.7.2",
Expand All @@ -22,7 +33,7 @@ libraryDependencies += ws
libraryDependencies += guice

lazy val root = (project in file(".")).
enablePlugins(PlayScala, BuildInfoPlugin, LauncherJarPlugin).
enablePlugins(PlayScala, BuildInfoPlugin, LauncherJarPlugin, JDebPackaging, RpmPlugin).
settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "models"
Expand Down
2 changes: 2 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-gzip" % "1.0.2")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.19")

addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")

libraryDependencies += "org.vafer" % "jdeb" % "1.3" artifacts (Artifact("jdeb", "jar", "jar"))

0 comments on commit df9f17e

Please sign in to comment.