-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
134 lines (125 loc) · 4.77 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import sbt.internal.inc.classpath.ClasspathUtilities
val CirceVersion = "0.13.0"
val LogbackVersion = "1.2.3"
val ZioVersion = "1.0.4"
inThisBuild(
List(
organization := "io.github.caeus",
developers := List(
Developer(
"caeus",
"Alejandro Navas",
url("https://github.com/caeus")
)
),
homepage := Some(url("https://github.com/caeus/elodin")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
scalaVersion := "2.13.1",
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.10.3"),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.0"),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")),
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-language:higherKinds",
"-language:postfixOps",
"-feature",
"-Xfatal-warnings"
)
)
)
lazy val root = project
.in(file("."))
.settings(
name := "elodin",
skip in publish := true
)
.aggregate(plutus, core, barebones, predef)
lazy val core = project
.in(file("core"))
.settings(
name := "core",
version := "0.0.1-SNAPSHOT",
homepage := Some(url("https://github.com/caeus/elodin")),
libraryDependencies ++= Seq(
"com.propensive" %% "magnolia" % "0.17.0",
// "org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided,
"dev.zio" %% "zio-test-sbt" % ZioVersion % Test,
"dev.zio" %% "zio" % ZioVersion,
"io.circe" %% "circe-parser" % "0.13.0",
"ch.qos.logback" % "logback-classic" % LogbackVersion,
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2",
"com.lihaoyi" %% "pprint" % "0.5.6" % Test
)
)
lazy val barebones = project
.in(file("barebones"))
.settings(
name := "barebones",
version := "0.0.1-SNAPSHOT",
libraryDependencies ++= Seq(
"dev.zio" %% "zio-test-sbt" % ZioVersion % Test,
"dev.zio" %% "zio" % ZioVersion,
"io.circe" %% "circe-parser" % "0.13.0",
"ch.qos.logback" % "logback-classic" % LogbackVersion,
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2",
"com.lihaoyi" %% "pprint" % "0.5.6" % Test,
"io.suzaku" %% "boopickle" % "1.3.3"
)
)
.dependsOn(plutus, core)
lazy val predef = project
.in(file("predef"))
.settings(
name := "predef",
version := "0.0.1-SNAPSHOT",
libraryDependencies ++= Seq(
"dev.zio" %% "zio-test-sbt" % ZioVersion % Test,
"dev.zio" %% "zio" % ZioVersion,
"io.circe" %% "circe-parser" % "0.13.0",
"ch.qos.logback" % "logback-classic" % LogbackVersion,
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2",
"com.lihaoyi" %% "pprint" % "0.5.6" % Test,
"io.suzaku" %% "boopickle" % "1.3.3"
),
(resourceGenerators in Compile) += Def.task {
val barebonesCL = (barebones / Test / testLoader).value
val genPredefClass = barebonesCL.loadClass("io.github.caeus.elodin.GenPredef")
val releaseMethod = genPredefClass.getMethod("release", classOf[String])
val file = (resourceManaged in Compile).value / "predef.elodinp"
releaseMethod
.invoke(null, file.getAbsolutePath)
Seq(file)
}.taskValue
)
.dependsOn(barebones)
lazy val plutus = (project in file("plutus"))
.settings(
name := "plutus",
version := "0.0.1-SNAPSHOT",
homepage := Some(url("https://github.com/caeus/elodin")),
libraryDependencies ++= Seq(
"dev.zio" %% "zio-test-sbt" % ZioVersion % Test,
"io.circe" %% "circe-core" % "0.13.0",
"com.jsoniter" % "jsoniter" % "0.9.1",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2"
)
)
def ingored = {
lazy val chusky = (project in file("chusky"))
.settings(
name := "chusky",
version := "0.0.1-SNAPSHOT",
homepage := Some(url("https://github.com/caeus/elodin")),
libraryDependencies ++= Seq(
"dev.zio" %% "zio-test-sbt" % ZioVersion % Test,
"dev.zio" %% "zio-test" % ZioVersion,
"io.circe" %% "circe-core" % "0.13.0",
"com.jsoniter" % "jsoniter" % "0.9.1",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2"
)
)
.dependsOn(plutus)
}