Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting correct version and adding import statements #261

Merged
merged 1 commit into from
May 22, 2014
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
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