代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/kafka-manager 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/**
* Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0
* See accompanying LICENSE file.
*/
name := """cmak"""
/* For packaging purposes, -SNAPSHOT MUST contain a digit */
version := "3.0.0.5"
scalaVersion := "2.12.10"
scalacOptions ++= Seq("-Xlint:-missing-interpolator","-Xfatal-warnings","-deprecation","-feature","-language:implicitConversions","-language:postfixOps","-Xmax-classfile-name","240")
// From https://www.playframework.com/documentation/2.3.x/ProductionDist
assemblyMergeStrategy in assembly := {
case "play/reference-overrides.conf" => MergeStrategy.first
case "logger.xml" => MergeStrategy.first
case "META-INF/io.netty.versions.properties" => MergeStrategy.first
case "module-info.class" => MergeStrategy.first
case "play/core/server/ServerWithStop.class" => MergeStrategy.first
case "org/apache/kafka/common/metrics/JmxReporter.class" => MergeStrategy.first
case other => (assemblyMergeStrategy in assembly).value(other)
}
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.5.19",
"com.typesafe.akka" %% "akka-slf4j" % "2.5.19",
"com.google.code.findbugs" % "jsr305" % "3.0.2",
"org.webjars" %% "webjars-play" % "2.6.3",
"org.webjars" % "bootstrap" % "4.3.1",
"org.webjars" % "jquery" % "3.3.1-2",
"org.webjars" % "backbonejs" % "1.3.3",
"org.webjars" % "underscorejs" % "1.9.0",
"org.webjars" % "dustjs-linkedin" % "2.7.2",
"org.webjars" % "octicons" % "4.3.0",
"org.apache.curator" % "curator-framework" % "2.12.0" exclude("log4j","log4j") exclude("org.slf4j", "slf4j-log4j12") force(),
"org.apache.curator" % "curator-recipes" % "2.12.0" exclude("log4j","log4j") exclude("org.slf4j", "slf4j-log4j12") force(),
"org.json4s" %% "json4s-jackson" % "3.6.5",
"org.json4s" %% "json4s-scalaz" % "3.6.5",
"org.slf4j" % "log4j-over-slf4j" % "1.7.25",
"com.adrianhurt" %% "play-bootstrap" % "1.4-P26-B4" exclude("com.typesafe.play", "*"),
"org.clapper" %% "grizzled-slf4j" % "1.3.3",
"org.apache.kafka" %% "kafka" % "2.4.1" exclude("log4j","log4j") exclude("org.slf4j", "slf4j-log4j12") force(),
"org.apache.kafka" % "kafka-streams" % "2.2.0",
"com.beachape" %% "enumeratum" % "1.5.13",
"com.github.ben-manes.caffeine" % "caffeine" % "2.6.2",
"com.typesafe.play" %% "play-logback" % "2.6.21",
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"org.scalatestplus.play" %% "scalatestplus-play" % "3.1.2" % "test",
"org.apache.curator" % "curator-test" % "2.12.0" % "test",
"org.mockito" % "mockito-core" % "1.10.19" % "test",
"com.yammer.metrics" % "metrics-core" % "2.2.0" force(),
"com.unboundid" % "unboundid-ldapsdk" % "4.0.9"
)
routesGenerator := InjectedRoutesGenerator
LessKeys.compress in Assets := true
pipelineStages := Seq(digest, gzip)
includeFilter in (Assets, LessKeys.less) := "*.less"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
coverageExcludedPackages := "<empty>;controllers.*;views.*;models.*"
/*
* Allow packaging as part of the build
*/
enablePlugins(SbtNativePackager)
/*
* Enable systemd as systemloader
*/
enablePlugins(SystemdPlugin)
enablePlugins(sbtdocker.DockerPlugin)
dockerfile in docker := {
val zipFile: File = dist.value
new Dockerfile {
from("openjdk:11-jre-slim")
runRaw("apt-get update && apt-get install -y --no-install-recommends unzip")
add(zipFile, file("/opt/cmak.zip"))
workDir("/opt")
run("unzip", "cmak.zip")
run("rm", "-f", "cmak.zip")
expose(9000)
cmd(s"cmak-${version.value}/bin/cmak")
}
}
imageNames in docker := Seq(
ImageName(
s"${name.value}:${version.value}"
)
)
buildOptions in docker := BuildOptions(
pullBaseImage = BuildOptions.Pull.Always
)
/*
* Start service as user root
*/
daemonUser in Linux := "root"
/* 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 <yahoo@example.com>"
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/cmak")
rpmLicense := Some("Apache")
rpmGroup := Some("cmak")
import RpmConstants._
maintainerScripts in Rpm := maintainerScriptsAppend((maintainerScripts in Rpm).value)(
Pre -> "%define _binary_payload w9.xzdio"
)
/* End RPM Settings */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。