-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
33 lines (24 loc) · 892 Bytes
/
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
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.13.11"
ThisBuild / organization := "org.example"
lazy val root = (project in file("."))
.settings(
name := "transform",
)
val scalaVersion_ = "2.13.11"
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-compiler" % scalaVersion_ % Provided,
"org.scala-lang" % "scala-reflect" % scalaVersion_,
"org.morphir" %% "morphir-ir" % "0.17.0"
)
publishLocal := {
(assembly in Compile).value // This produces the fat jar
publishLocal.value // This runs the original publishLocal task
}
// Define a custom artifact
artifact in(Compile, assembly) := {
val art = (artifact in(Compile, packageBin)).value
art.withType("jar").withExtension("jar").withClassifier(Some("assembly"))
}
// Add assemblyArtifact to the list of artifacts
addArtifact(artifact in(Compile, assembly), assembly)