Skip to content

Commit b254808

Browse files
author
Roman Janusz
committed
build of the build is also based on pure Scala files
1 parent e2c250e commit b254808

File tree

3 files changed

+32
-19
lines changed

3 files changed

+32
-19
lines changed

project/build.sbt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
lazy val macros = project.settings(
2-
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value
3-
)
4-
5-
lazy val root = project.in(file(".")).dependsOn(macros)
1+
lazy val root = BuildBuild.root

project/plugins.sbt

Lines changed: 0 additions & 14 deletions
This file was deleted.

project/project/BuildBuild.scala

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import sbt.Keys._
2+
import sbt._
3+
4+
object BuildBuild extends AutoPlugin {
5+
val scalaJSVersion: String =
6+
Option(System.getenv("SCALAJS_VERSION")).getOrElse("1.7.1")
7+
8+
override def extraProjects: Seq[Project] = Seq(macros)
9+
10+
lazy val root = project.in(file("."))
11+
.enablePlugins(this)
12+
.dependsOn(macros)
13+
.settings(
14+
logLevel := Level.Warn,
15+
16+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion),
17+
addSbtPlugin("org.jetbrains.scala" % "sbt-ide-settings" % "1.1.1"),
18+
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.0"),
19+
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7"),
20+
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3"),
21+
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.9.2"),
22+
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.0"),
23+
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.8"),
24+
addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.9.5"),
25+
)
26+
27+
lazy val macros = project
28+
.settings(
29+
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value
30+
)
31+
}

0 commit comments

Comments
 (0)