summaryrefslogblamecommitdiff
path: root/build.sbt
blob: ea2db92e53009e6157768feb4d0c829ff8936409 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                                     
 
                                                              
 

                                     
 





                                                                                               
 
 











                                                                           
   






                                                  
val sharedSettings = Seq(
  scalaVersion := "2.12.4",
  organization := "com.lihaoyi",
  libraryDependencies += "com.lihaoyi" %% "utest" % "0.6.0" % "test",

  testFrameworks += new TestFramework("forge.UTestFramework"),

  parallelExecution in Test := false,
  test in assembly := {},

  assemblyOption in assembly := (assemblyOption in assembly).value.copy(
    prependShellScript = Some(
      // G1 Garbage Collector is awesome https://github.com/lihaoyi/Ammonite/issues/216
      Seq("#!/usr/bin/env sh", """exec java -jar -Xmx500m -XX:+UseG1GC $JAVA_OPTS "$0" "$@"""")
    )
  )
)

lazy val core = project
  .settings(
    sharedSettings,
    name := "forge-core",
    libraryDependencies ++= Seq(
      "org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided",
      "com.lihaoyi" %% "sourcecode" % "0.1.4",
      "com.lihaoyi" %% "pprint" % "0.5.3",
      "com.lihaoyi" % "ammonite" % "1.0.3" cross CrossVersion.full,
      "com.typesafe.play" %% "play-json" % "2.6.6",
      "org.scala-sbt" %% "zinc" % "1.0.3"
    )
  )

lazy val scalaplugin = project
  .dependsOn(core % "compile->compile;test->test")
  .settings(
    sharedSettings,
    name := "forge-scalaplugin"
  )