mirror of
https://github.com/ij-plugins/ijp-imagej-launcher.git
synced 2024-11-13 16:29:01 -08:00
Ensure that SBT project version and application version are in sync
This commit is contained in:
parent
9a0cb694f7
commit
8a417ceedb
3 changed files with 10 additions and 4 deletions
|
|
@ -48,3 +48,8 @@ nativeConfig ~= { c =>
|
||||||
//nativeConfig ~= { c =>
|
//nativeConfig ~= { c =>
|
||||||
// c.withCompileOptions(c.compileOptions ++ Seq("-v"))
|
// c.withCompileOptions(c.compileOptions ++ Seq("-v"))
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
// Version info generation from SBT configuration
|
||||||
|
enablePlugins(BuildInfoPlugin)
|
||||||
|
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
|
||||||
|
buildInfoPackage := "ij_plugins.imagej_launcher"
|
||||||
|
|
|
||||||
2
project/buildinfo.sbt
Normal file
2
project/buildinfo.sbt
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
// https://github.com/sbt/sbt-buildinfo
|
||||||
|
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
|
||||||
|
|
@ -11,9 +11,8 @@ import java.io.File
|
||||||
|
|
||||||
object Main:
|
object Main:
|
||||||
private var logger = new Logger()
|
private var logger = new Logger()
|
||||||
private val AppName = "ijp-imagej-launcher"
|
private val AppName = "IJP-ImageJ-Launcher"
|
||||||
// private val AppVersion = s"${Version.version} [${Version.buildTimeStr}]"
|
private val AppVersion = BuildInfo.version
|
||||||
private val AppVersion = s"0.1.0"
|
|
||||||
private val VersionMessage = s"v.$AppVersion"
|
private val VersionMessage = s"v.$AppVersion"
|
||||||
private val AppDescription =
|
private val AppDescription =
|
||||||
"""Native launcher for ImageJ2
|
"""Native launcher for ImageJ2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue