Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Update...</p> <p><a href="https://github.com/ritschwumm/xsbt-reflect" rel="nofollow noreferrer">https://github.com/ritschwumm/xsbt-reflect</a> (mentioned above) is Obsolete, but there is this cool SBT release tool that can automatically manage versions and more: <a href="https://github.com/sbt/sbt-release" rel="nofollow noreferrer">https://github.com/sbt/sbt-release</a>.</p> <p>Alternatively, if you want a quick fix you can get version from manifest like this:</p> <pre><code>val version: String = getClass.getPackage.getImplementationVersion </code></pre> <p>This value will be equal to <code>version</code> setting in your project which you set either in <code>build.sbt</code> or <code>Build.scala</code>.</p> <p>Another Update ...</p> <p>Buildinfo SBT plugin can generate a class with version number based on <code>build.sbt</code>:</p> <pre><code>/** This object was generated by sbt-buildinfo. */ case object BuildInfo { /** The value is "helloworld". */ val name: String = "helloworld" /** The value is "0.1-SNAPSHOT". */ val version: String = "0.1-SNAPSHOT" /** The value is "2.10.3". */ val scalaVersion: String = "2.10.3" /** The value is "0.13.2". */ val sbtVersion: String = "0.13.2" override val toString: String = "name: %s, version: %s, scalaVersion: %s, sbtVersion: %s" format (name, version, scalaVersion, sbtVersion) } </code></pre> <p>See the docs on how to enable it here: <a href="https://github.com/sbt/sbt-buildinfo/" rel="nofollow noreferrer">https://github.com/sbt/sbt-buildinfo/</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload