From 8f7604ae0f3db021507623c71e8bb572fb85f962 Mon Sep 17 00:00:00 2001 From: To-om Date: Wed, 24 May 2017 09:12:18 +0200 Subject: [PATCH] #31 Add information in package metadata Status API uses package metadata to get project version --- build.sbt | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/build.sbt b/build.sbt index 2e2761f41..914d279af 100644 --- a/build.sbt +++ b/build.sbt @@ -13,16 +13,22 @@ libraryDependencies ++= Seq( "org.scalatestplus.play" %% "scalatestplus-play" % "1.5.1" % Test ) -resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases" +// Add information in manifest +import Package.ManifestAttributes +import java.util.jar.Attributes.Name._ +packageOptions ++= Seq( + ManifestAttributes(IMPLEMENTATION_TITLE -> name.value), + ManifestAttributes(IMPLEMENTATION_VERSION -> version.value), + ManifestAttributes(SPECIFICATION_VENDOR -> "TheHive Project"), + ManifestAttributes(SPECIFICATION_TITLE -> name.value), + ManifestAttributes(SPECIFICATION_VERSION -> "TheHive Project") +) +resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases" Release.releaseVersionUIFile := baseDirectory.value / "ui" / "package.json" - Release.changelogFile := baseDirectory.value / "CHANGELOG.md" - publishArtifact in (Compile, packageDoc) := false - publishArtifact in packageDoc := false - sources in (Compile,doc) := Seq.empty // Front-end //