Skip to content

Commit b591866

Browse files
author
cunei
authored
Merge pull request #191 from dwijnand/debone-fish
Avoid injecting deprecated operators. Fixes #190
2 parents e0825de + 61d62aa commit b591866

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

support/src/main/scala/com/typesafe/dbuild/support/sbt/SbtRunner.scala

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,9 @@ object SbtRunner {
336336
val addDBuildPlugin =
337337
"""addSbtPlugin("com.typesafe.dbuild" % "plugin" % """ + '"' + Defaults.version + "\")\n\n"
338338

339-
/**
340-
* Perform a state transformation using onLoad()
341-
*/
339+
/** Perform a state transformation using onLoad() */
342340
def onLoad(activity: String) = {
343-
"onLoad in Global <<= (onLoad in Global) { previousOnLoad => previousOnLoad andThen { state => { " + activity + " } }}\n\n"
341+
"onLoad in Global ~= (previousOnLoad => previousOnLoad andThen (state => { " + activity + " }))\n\n"
344342
}
345343

346344
// stuff related to generateArtifacts()
@@ -351,4 +349,4 @@ object SbtRunner {
351349
def genArtsInputFile(projectDir: File) = projectDir / dbuildSbtDirName / getArtsInputFileName
352350
/** The file where the resulting BuildArtifactsOut will be stored, at the end of building */
353351
def buildArtsFile(projectDir: File) = projectDir / dbuildSbtDirName / outBuildArtsName
354-
}
352+
}

0 commit comments

Comments
 (0)