Skip to content

Commit

Permalink
Merge pull request #42 from disneystreaming/show-version-startup
Browse files Browse the repository at this point in the history
Show version on startup
  • Loading branch information
Baccata committed May 12, 2023
2 parents 1bac608 + cca2776 commit 0964bb7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.sc
Expand Up @@ -130,4 +130,15 @@ object lsp extends MavenModule with PublishModule {
s"$version$dirtySuffix"
}

def writeVersion: T[PathRef] = T {
val version = publishVersion()
val targetDir = T.ctx().dest / "resources"

os.makeDir.all(targetDir)
os.write(targetDir / "version.properties", s"version=$version")
PathRef(targetDir)
}

override def localClasspath = super.localClasspath() :+ writeVersion()

}

0 comments on commit 0964bb7

Please sign in to comment.