diff --git a/src/sphinx/DetailedTopics/universal.rst b/src/sphinx/DetailedTopics/universal.rst index 854927e63..011d9e39c 100644 --- a/src/sphinx/DetailedTopics/universal.rst +++ b/src/sphinx/DetailedTopics/universal.rst @@ -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") @@ -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 diff --git a/src/sphinx/GettingStartedApplications/MyFirstProject.rst b/src/sphinx/GettingStartedApplications/MyFirstProject.rst index ce2280999..04f01430b 100644 --- a/src/sphinx/GettingStartedApplications/MyFirstProject.rst +++ b/src/sphinx/GettingStartedApplications/MyFirstProject.rst @@ -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" diff --git a/src/sphinx/installation.rst b/src/sphinx/installation.rst index 79a949391..be154d75c 100644 --- a/src/sphinx/installation.rst +++ b/src/sphinx/installation.rst @@ -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 -------