Skip to content

Commit

Permalink
Merge pull request #261 from sbt/wip/fixing-docs-versions
Browse files Browse the repository at this point in the history
Setting correct version and adding import statements
  • Loading branch information
muuki88 committed May 22, 2014
2 parents f772a05 + 4fece56 commit 9213b17
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/sphinx/DetailedTopics/universal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ The `MappingsHelper`_ class provides a set of helper functions to make mapping d

.. code-block:: scala
import com.typesafe.sbt.SbtNativePackager._
import NativePackagerHelper._
mappings in Universal ++= directory("src/main/resources/cache")
Expand Down Expand Up @@ -203,6 +204,7 @@ It exists some helper methods to map a complete directory in more human readable

.. code-block:: scala
import com.typesafe.sbt.SbtNativePackager._
import NativePackagerHelper._
//For dynamic content, e.g. something in the target directory which depends on a Task
Expand Down
5 changes: 4 additions & 1 deletion src/sphinx/GettingStartedApplications/MyFirstProject.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ and documents to users which version of sbt you require for the build.

Next, let's add the native packager to our build by created a ``project/plugins.sbt`` file with the following contents ::

addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.0-RC2")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.1")

Now, the build needs to be configured for packaging. Let's define the ``build.sbt`` file as follows

.. code-block:: scala
import com.typesafe.sbt.SbtNativePackager._
import NativePackagerKeys._
name := "example-cli"
version := "1.0"
Expand Down
11 changes: 9 additions & 2 deletions src/sphinx/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,22 @@
Installation
===============

The sbt-native-packager is a plugin. To use it, first create a ``project/plugins.sbt`` file with the following.
The sbt-native-packager is a plugin. To use it, first create a ``project/plugins.sbt`` file with the following.

.. code-block:: scala
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.0-RC2")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.1")
Also, each operating system requires its own tools for download.

For the native packager keys add this to your build.sbt

.. code-block:: scala
import com.typesafe.sbt.SbtNativePackager._
import NativePackagerKeys._
Windows
-------

Expand Down

0 comments on commit 9213b17

Please sign in to comment.