Skip to content

Commit

Permalink
update build, fix naming clash, improve welcome msg
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornregnell committed Sep 27, 2018
1 parent 7517017 commit 8329083
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ hello := println("""
type 'eclipse' to generate eclipse workspace
type 'projects' to see all sub-projects
type 'project workspace' to change to sub-project workspace
type 'hello' to see this message
=====================================================================
""")

lazy val startupTransition: State => State = { s: State =>
lazy val myStartupTransition: State => State = { s: State =>
"hello" :: s
}

Expand Down Expand Up @@ -196,10 +200,10 @@ lazy val root = (project in file(".")).
aggregate(workspace, plan).
settings(commonSettings: _*).
settings(
name := "introprog",
name := "introprog root",
onLoad in Global := {
// https://www.scala-sbt.org/1.0/docs/offline/Howto-Startup.html
val old = (onLoad in Global).value
startupTransition compose old
myStartupTransition compose old
}
)

0 comments on commit 8329083

Please sign in to comment.