Skip to content

Commit

Permalink
Simplify build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mhamilton723 committed Jul 6, 2019
1 parent 5c8c903 commit 8cf91ca
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 310 deletions.
22 changes: 22 additions & 0 deletions build.sbt
Expand Up @@ -191,6 +191,28 @@ getDatasetsTask := {
}
}

val genBuildInfo = TaskKey[Unit]("genBuildInfo", "generate a build info file")
genBuildInfo := {

val buildInfo =
s"""
|MMLSpark Build Release Info
|---------------
|
|### Maven Coordinates
| `${organization.value}:${name.value}:${version.value}`
|
|### Documentation Uploaded:
|[Scala](https://mmlspark.blob.core.windows.net/docs/${version.value}/scala/index.html)
|[Python](https://mmlspark.blob.core.windows.net/docs/${version.value}/pyspark/index.html)
|
""".stripMargin

val infoFile = join("target", "Build.md")
if (infoFile.exists()) FileUtils.forceDelete(infoFile)
FileUtils.writeStringToFile(infoFile, buildInfo, "utf-8")
}

val setupTask = TaskKey[Unit]("setup", "set up library for intellij")
setupTask := {
(Compile / compile).toTask.value
Expand Down

0 comments on commit 8cf91ca

Please sign in to comment.