-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
39 lines (32 loc) · 1.36 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
val dottyVersion = "0.27.0-RC1"
ThisBuild / name := "intent"
ThisBuild / version := "0.6.0"
ThisBuild / scalaVersion := dottyVersion
ThisBuild / publishTo := sonatypePublishToBundle.value
// Let 'sbt clean' remove files that may cause the editor to get out-of-sync
// with the compiler.
cleanFiles += new java.io.File(".dotty-ide.json")
cleanFiles += new java.io.File(".dotty-ide-artifact")
lazy val macros = (project in file("macros"))
.settings(
publish := {},
publishLocal := {}
)
lazy val root = project
.in(file("."))
.settings(
name := "intent",
organization := "com.factor10",
libraryDependencies += "org.scala-sbt" % "test-interface" % "1.0",
testFrameworks += new TestFramework("intent.sbt.Framework"),
// Without -Yindent-colons, the editor and compiler get out of sync for me - Per
scalacOptions += "-Yindent-colons",
// include the macro classes and resources in the main jar
mappings in (Compile, packageBin) ++= mappings.in(macros, Compile, packageBin).value,
// include the macro sources in the main source jar
mappings in (Compile, packageSrc) ++= mappings.in(macros, Compile, packageSrc).value,
// These are not the documents you are looking for...
sources in (Compile,doc) := Seq.empty,
// publishArtifact in (Compile, packageDoc) := false
)
.dependsOn(macros % "compile-internal, test-internal")