forked from yahoo/CMAK
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
85 lines (64 loc) · 2.72 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/**
* Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0
* See accompanying LICENSE file.
*/
name := """kafka-manager"""
/* For packaging purposes, -SNAPSHOT MUST contain a digit */
version := "1.2.9.10"
scalaVersion := "2.11.7"
scalacOptions ++= Seq("-Xlint:-missing-interpolator","-Xfatal-warnings","-deprecation","-feature","-language:implicitConversions","-language:postfixOps")
// From https://www.playframework.com/documentation/2.3.x/ProductionDist
assemblyMergeStrategy in assembly := {
case "logger.xml" => MergeStrategy.first
case "play/core/server/ServerWithStop.class" => MergeStrategy.first
case other => (assemblyMergeStrategy in assembly).value(other)
}
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.3.14",
"com.typesafe.akka" %% "akka-slf4j" % "2.3.14",
"com.google.code.findbugs" % "jsr305" % "2.0.1",
"org.webjars" %% "webjars-play" % "2.3.0-2",
"org.webjars" % "bootstrap" % "3.3.4",
"org.webjars" % "jquery" % "2.1.4",
"org.webjars" % "backbonejs" % "1.1.2-4",
"org.webjars" % "underscorejs" % "1.8.3",
"org.webjars" % "dustjs-linkedin" % "2.6.1",
"org.apache.curator" % "curator-framework" % "2.7.1" exclude("log4j","log4j") force(),
"org.apache.curator" % "curator-recipes" % "2.7.1" exclude("log4j","log4j") force(),
"org.json4s" %% "json4s-jackson" % "3.2.11",
"org.json4s" %% "json4s-scalaz" % "3.2.11",
"org.slf4j" % "log4j-over-slf4j" % "1.7.7",
"com.adrianhurt" %% "play-bootstrap3" % "0.4",
"org.apache.kafka" %% "kafka" % "0.8.2.1" exclude("log4j","log4j") force(),
"org.scalatest" %% "scalatest" % "2.2.1" % "test",
"org.apache.curator" % "curator-test" % "2.7.1" % "test" force()
)
net.virtualvoid.sbt.graph.Plugin.graphSettings
LessKeys.compress in Assets := true
pipelineStages := Seq(digest, gzip)
includeFilter in (Assets, LessKeys.less) := "*.less"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
ScoverageSbtPlugin.ScoverageKeys.coverageExcludedPackages := "<empty>;controllers.*;views.*;models.*"
/*
* Allow packaging as part of the build
*/
enablePlugins(SbtNativePackager)
/* Debian Settings - to create, run as:
$ sbt debian:packageBin
See here for details:
http://www.scala-sbt.org/sbt-native-packager/formats/debian.html
*/
maintainer := "Yahoo <[email protected]>"
packageSummary := "A tool for managing Apache Kafka"
packageDescription := "A tool for managing Apache Kafka"
/* End Debian Settings */
/* RPM Settings - to create, run as:
$ sbt rpm:packageBin
See here for details:
http://www.scala-sbt.org/sbt-native-packager/formats/rpm.html
*/
rpmRelease := "1"
rpmVendor := "yahoo"
rpmUrl := Some("https://github.com/yahoo/kafka-manager")
rpmLicense := Some("Apache")
/* End RPM Settings */