Commit 0382ec47 authored by Kunshan Wang's avatar Kunshan Wang

Use multi-proj sbt; bump dep vers.

Moved from the deprecated "flat" sbt project definition style to the
recommended "multi-project" style.

Bumped dependency versions.
parent e65b732f
......@@ -3,49 +3,52 @@ lazy val genSrc = taskKey[List[File]]("generate sources")
genSrc <<= (sourceGenerators in Compile) { _.join.map(_.flatten.toList) }
organization := "org.microvm"
lazy val makeClasspathFile = taskKey[Unit]("write the run-time classpath to target/jars.txt as colon-separated list")
name := "mu-impl-ref2"
lazy val root = (project in file(".")).
settings(
organization := "org.microvm",
version := "2.2.0"
name := "mu-impl-ref2",
description := "The second reference implementation of Mu, the micro virtual machine"
version := "2.2.0",
licenses := Seq("CC BY-SA 4.0" -> url("https://creativecommons.org/licenses/by-sa/4.0/legalcode"))
description := "The second reference implementation of Mu, the micro virtual machine",
scalaVersion := "2.11.8"
licenses := Seq("CC BY-SA 4.0" -> url("https://creativecommons.org/licenses/by-sa/4.0/legalcode")),
libraryDependencies ++= Seq(
"org.antlr" % "antlr4" % "4.5.2-1",
"com.typesafe.scala-logging" %% "scala-logging" % "3.1.0",
"ch.qos.logback" % "logback-classic" % "1.1.3",
"com.github.jnr" % "jnr-ffi" % "2.0.9",
"com.github.jnr" % "jffi" % "1.2.11",
"com.github.jnr" % "jnr-posix" % "3.0.29",
"org.scalatest" %% "scalatest" % "2.2.6" % "test",
"junit" % "junit" % "4.12" % "test"
)
scalaVersion := "2.11.8",
testOptions in Test += Tests.Argument("-oF") // print full stack trace when testing
libraryDependencies ++= Seq(
"org.antlr" % "antlr4" % "4.5.3",
"com.typesafe.scala-logging" %% "scala-logging" % "3.5.0",
"ch.qos.logback" % "logback-classic" % "1.1.7",
"com.github.jnr" % "jnr-ffi" % "2.0.9",
"com.github.jnr" % "jffi" % "1.2.12" classifier "native",
"com.github.jnr" % "jnr-posix" % "3.0.29",
"org.scalatest" %% "scalatest" % "3.0.0" % "test",
"junit" % "junit" % "4.12" % "test"
),
parallelExecution in Test := false // disable parallel tests because the refimpl2 is not thread-safe
testOptions in Test += Tests.Argument("-oF"), // print full stack trace when testing
antlr4Settings
parallelExecution in Test := false, // disable parallel tests because the refimpl2 is not thread-safe
antlr4PackageName in Antlr4 := Some("uvm.ir.textinput.gen")
antlr4Settings,
antlr4GenListener in Antlr4 := false
antlr4PackageName in Antlr4 := Some("uvm.ir.textinput.gen"),
antlr4GenVisitor in Antlr4 := false
antlr4GenListener in Antlr4 := false,
lazy val makeClasspathFile = taskKey[Unit]("write the run-time classpath to target/jars.txt as colon-separated list")
antlr4GenVisitor in Antlr4 := false,
makeClasspathFile := {
val cp = (fullClasspath in Runtime).value.files
makeClasspathFile := {
val cp = (fullClasspath in Runtime).value.files
println("fullClasspath: \n" + cp.mkString("\n"))
println("fullClasspath: \n" + cp.mkString("\n"))
val cpStr = cp.mkString(":")
val cpStr = cp.mkString(":")
IO.write(new java.io.File("classpath.txt"), cpStr)
}
IO.write(new java.io.File("classpath.txt"), cpStr)
}
)
package uvm.refimpl.mem
import scala.annotation.implicitNotFound
import uvm._
import uvm.refimpl._
import uvm.refimpl.integerize._
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment