-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniele Riccardelli
committed
Sep 28, 2020
1 parent
4e441f7
commit 2e4907b
Showing
10 changed files
with
48 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,26 +12,47 @@ envVars ++= Map("CI_PROJECT_DIR" -> sys.env.getOrElse("CI_PROJECT_DIR", ".")) | |
|
||
lazy val sbtOps = sys.env.get("SBT_OPTS").map(_.split(" ")).getOrElse(Array.empty) | ||
|
||
lazy val publishSettings = Seq( | ||
homepage := Some(url("https://github.com/electronicarts/kara")), | ||
organization := "com.ea.kara", | ||
licenses := Seq("The 3-Clause BSD License" -> url("http://opensource.org/licenses/BSD-3-Clause")), | ||
publishMavenStyle := true, | ||
publishTo := sonatypePublishToBundle.value, | ||
scmInfo := Some( | ||
ScmInfo( | ||
url("https://github.com/electronicarts/kara"), | ||
"scm:git:[email protected]:electornicarts/kara.git" | ||
) | ||
), | ||
pomExtra := | ||
<developers> | ||
<developer> | ||
<name>Electronic Arts Inc.</name> | ||
<url>https://ea.com</url> | ||
</developer> | ||
</developers> | ||
) | ||
|
||
lazy val root = (project in file(".")) | ||
.enablePlugins(ScriptedPlugin) | ||
.settings( | ||
publishSettings, | ||
addSbtPlugin("com.twitter" % "scrooge-sbt-plugin" % finagleVersion), | ||
libraryDependencies ++= Seq( | ||
"commons-io" % "commons-io" % "2.7", | ||
"org.scalatra.scalate" %% "scalate-core" % "1.9.6", | ||
"com.twitter" %% "finagle-http" % finagleVersion % Test, | ||
"io.circe" %% "circe-yaml" % "0.13.0", | ||
"com.github.pathikrit" %% "better-files" % "3.9.1", | ||
"io.swagger.parser.v3" % "swagger-parser" % "2.0.21" % Test, | ||
"org.scalatest" %% "scalatest" % "3.2.1" % Test | ||
"commons-io" % "commons-io" % "2.7", | ||
"org.scalatra.scalate" %% "scalate-core" % "1.9.6", | ||
"com.twitter" %% "finagle-http" % finagleVersion % Test, | ||
"io.circe" %% "circe-yaml" % "0.13.0", | ||
"com.github.pathikrit" %% "better-files" % "3.9.1", | ||
"io.swagger.parser.v3" % "swagger-parser" % "2.0.21" % Test, | ||
"org.scalatest" %% "scalatest" % "3.2.1" % Test | ||
), | ||
scriptedLaunchOpts ++= Seq( | ||
"-Xmx1024M", | ||
"-Dplugin.version=" + version.value | ||
) ++ sbtOps, | ||
scriptedBufferLog := false, | ||
name := "kara", | ||
organization := "com.ea", | ||
sbtPlugin := true, | ||
scalaVersion := "2.12.12" | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// DO NOT EDIT! This file is auto-generated. | ||
// This file enables sbt-bloop to create bloop config files. | ||
|
||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.3") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.4-13-408f4d80") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
sys.props.get("plugin.version") match { | ||
case Some(x) => addSbtPlugin("com.ea" % "kara" % x) | ||
case Some(x) => addSbtPlugin("com.ea.kara" % "kara" % x) | ||
case _ => sys.error("""|The system property 'plugin.version' is not defined. | ||
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters