Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Show right version of scalaunfmt in help message #37

Merged
merged 1 commit into from
Sep 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ val scoptV = "3.7.1"
val similarityV = "1.2.1"

lazy val scalaunfmt = (project in file(".")).
enablePlugins(BuildInfoPlugin).
settings(
name := "scalaunfmt",
organization := "com.github.tanishiking",
Expand All @@ -30,6 +31,9 @@ lazy val scalaunfmt = (project in file(".")).
"-opt-inline-from"
),

buildInfoKeys := Seq[BuildInfoKey](version),
buildInfoPackage := "com.github.tanishiking.scalaunfmt",

homepage := Some(url("https://github.com/tanishiking/scalaunfmt")),
licenses := List("MIT License" -> url("http://www.opensource.org/licenses/mit-license.php")),
developers := List(
Expand Down
3 changes: 2 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.5")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.3.2")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.3.2")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package com.github.tanishiking.scalaunfmt.cli
package com.github.tanishiking.scalaunfmt
package cli

import java.io.File

Expand All @@ -8,7 +9,7 @@ object CliArgParser {
val scoptParser: OptionParser[CliOptions] =
new scopt.OptionParser[CliOptions]("scalaunfmt") {

head("scalaunfmt", "0.0.3")
head("scalaunfmt", BuildInfo.version)
arg[File]("<file>...")
.optional()
.unbounded()
Expand Down