Skip to content
Snippets Groups Projects
Commit 04aad4c8 authored by Katja Goltsova's avatar Katja Goltsova Committed by Viktor Kunčak
Browse files

Format build.sbt

parent 84edc289
No related branches found
No related tags found
4 merge requests!62Easy tactics,!58Easy tactics,!54Front integration,!53Front integration
inThisBuild(Def.settings( inThisBuild(
organization := "ch.epfl.lara", Def.settings(
organizationName := "LARA", organization := "ch.epfl.lara",
organizationHomepage := Some(url("https://lara.epfl.ch")), organizationName := "LARA",
licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")), organizationHomepage := Some(url("https://lara.epfl.ch")),
versionScheme := Some("semver-spec"), licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")),
scalacOptions ++= Seq( versionScheme := Some("semver-spec"),
"-feature", scalacOptions ++= Seq(
"-deprecation", "-feature",
"-unchecked", "-deprecation",
), "-unchecked"
semanticdbEnabled := true, ),
semanticdbVersion := scalafixSemanticdb.revision, semanticdbEnabled := true,
scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.6.0" semanticdbVersion := scalafixSemanticdb.revision,
)) scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.6.0"
)
)
val scala2 = "2.13.8" val scala2 = "2.13.8"
val scala3 = "3.1.3" val scala3 = "3.1.3"
val commonSettings2 = Seq( val commonSettings2 = Seq(
scalaVersion := scala2, scalaVersion := scala2
) )
val commonSettings3 = Seq( val commonSettings3 = Seq(
scalaVersion := scala3, scalaVersion := scala3,
scalacOptions ++= Seq( scalacOptions ++= Seq(
"-language:implicitConversions", "-language:implicitConversions",
//"-source:future", re-enable when liancheng/scalafix-organize-imports#221 is fixed // "-source:future", re-enable when liancheng/scalafix-organize-imports#221 is fixed
"-old-syntax", "-old-syntax",
"-no-indent", "-no-indent"
), ),
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.10" % "test", libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.10" % "test",
Test / parallelExecution := false, Test / parallelExecution := false
) )
def withTests(project: Project): ClasspathDependency = def withTests(project: Project): ClasspathDependency =
...@@ -37,18 +39,18 @@ def withTests(project: Project): ClasspathDependency = ...@@ -37,18 +39,18 @@ def withTests(project: Project): ClasspathDependency =
lazy val root = Project( lazy val root = Project(
id = "lisa", id = "lisa",
base = file("."), base = file(".")
) )
.settings(commonSettings3) .settings(commonSettings3)
.settings( .settings(
version := "0.1", version := "0.1"
) )
.dependsOn(kernel, withTests(utils), theories, tptp) // Everything but `examples` .dependsOn(kernel, withTests(utils), theories, tptp) // Everything but `examples`
.aggregate(kernel, utils, theories, tptp) // To run tests on all modules .aggregate(kernel, utils, theories, tptp) // To run tests on all modules
lazy val kernel = Project( lazy val kernel = Project(
id = "lisa-kernel", id = "lisa-kernel",
base = file("lisa-kernel"), base = file("lisa-kernel")
) )
.settings(commonSettings2) .settings(commonSettings2)
.settings( .settings(
...@@ -57,31 +59,31 @@ lazy val kernel = Project( ...@@ -57,31 +59,31 @@ lazy val kernel = Project(
lazy val utils = Project( lazy val utils = Project(
id = "lisa-utils", id = "lisa-utils",
base = file("lisa-utils"), base = file("lisa-utils")
) )
.settings(commonSettings3) .settings(commonSettings3)
.dependsOn(kernel) .dependsOn(kernel)
lazy val theories = Project( lazy val theories = Project(
id = "lisa-theories", id = "lisa-theories",
base = file("lisa-theories"), base = file("lisa-theories")
) )
.settings(commonSettings3) .settings(commonSettings3)
.dependsOn(withTests(utils)) .dependsOn(withTests(utils))
lazy val tptp = Project( lazy val tptp = Project(
id = "lisa-tptp", id = "lisa-tptp",
base = file("lisa-tptp"), base = file("lisa-tptp")
) )
.settings(commonSettings3) .settings(commonSettings3)
.settings( .settings(
libraryDependencies += "io.github.leoprover" % "scala-tptp-parser_2.13" % "1.4", libraryDependencies += "io.github.leoprover" % "scala-tptp-parser_2.13" % "1.4"
) )
.dependsOn(withTests(utils)) .dependsOn(withTests(utils))
lazy val examples = Project( lazy val examples = Project(
id = "lisa-examples", id = "lisa-examples",
base = file("lisa-examples"), base = file("lisa-examples")
) )
.settings(commonSettings3) .settings(commonSettings3)
.dependsOn(root) .dependsOn(root)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment