import bintray.Keys._

name := "play-scalajs-scripts"

version := "0.1.0"

organization := "com.vmunier"

homepage := Some(url("https://github.com/vmunier/play-scalajs-scripts"))

crossScalaVersions := Seq("2.10.4", "2.11.2")

unmanagedSourceDirectories in Compile += target.value / ("scala-" + scalaBinaryVersion.value) / "twirl" / "main"

// PlayScala needs to be enabled, SbtTwirl can't be used alone because play.api.Play is needed
enablePlugins(PlayScala)

licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))

pomExtra := (
  <scm>
    <url>git@github.com:vmunier/play-scalajs-scripts.git</url>
    <connection>scm:git:git@github.com:vmunier/play-scalajs-scripts.git</connection>
  </scm>
  <developers>
    <developer>
      <id>vmunier</id>
      <name>Vincent Munier</name>
      <url>https://github.com/vmunier</url>
    </developer>
  </developers>
)
publishMavenStyle := true
repository in bintray := "scalajs"
bintrayPublishSettings

import bintray.Keys._

name := "play-scalajs-scripts"

version := "0.1.0"

organization := "com.vmunier"

homepage := Some(url("https://github.com/vmunier/play-scalajs-scripts"))

crossScalaVersions := Seq("2.10.4", "2.11.2")

// PlayScala needs to be enabled, SbtTwirl can't be used alone because play.api.Play is needed
enablePlugins(PlayScala)

licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))

pomExtra := (
  <scm>
    <url>git@github.com:vmunier/play-scalajs-scripts.git</url>
    <connection>scm:git:git@github.com:vmunier/play-scalajs-scripts.git</connection>
  </scm>
  <developers>
    <developer>
      <id>vmunier</id>
      <name>Vincent Munier</name>
      <url>https://github.com/vmunier</url>
    </developer>
  </developers>
)
publishMavenStyle := true
repository in bintray := "scalajs"
bintrayPublishSettings

--- 
+++ 
@@ -9,6 +9,8 @@
 homepage := Some(url("https://github.com/vmunier/play-scalajs-scripts"))
 
 crossScalaVersions := Seq("2.10.4", "2.11.2")
+
+unmanagedSourceDirectories in Compile += target.value / ("scala-" + scalaBinaryVersion.value) / "twirl" / "main"
 
 // PlayScala needs to be enabled, SbtTwirl can't be used alone because play.api.Play is needed
 enablePlugins(PlayScala)
Add an unmanaged source directory so that the source JAR file contains the compiled twirl templates which are Scala files.
