Created
July 15, 2015 18:04
-
-
Save nadavwr/08813cc25d5a57c9c3c9 to your computer and use it in GitHub Desktop.
android-sdk-plugin conflicts with sbt-native-packager over 'package-name'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// androidApp/build.sbt | |
android.Plugin.androidBuild | |
platformTarget in Android := "android-22" | |
libraryDependencies += "com.google.android.gms" % "play-services" % "4.3.23" | |
autoScalaLibrary := false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sbt | |
[info] Loading global plugins from /Users/nadav/.sbt/0.13/plugins | |
[info] Loading project definition from /Users/nadav/hack/lynx/sbt-test/project | |
java.lang.RuntimeException: Some keys were defined with the same name but different types: 'packageName' (java.lang.String, sbt.Task[java.lang.String]) | |
at scala.sys.package$.error(package.scala:27) | |
at sbt.Index$.stringToKeyMap0(EvaluateConfigurations.scala:296) | |
at sbt.Index$.stringToKeyMap(EvaluateConfigurations.scala:287) | |
at sbt.Load$.structureIndex(Load.scala:180) | |
at sbt.Load$.apply(Load.scala:137) | |
at sbt.Load$.defaultLoad(Load.scala:36) | |
at sbt.BuiltinCommands$.doLoadProject(Main.scala:481) | |
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475) | |
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475) | |
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58) | |
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58) | |
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60) | |
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60) | |
at sbt.Command$.process(Command.scala:92) | |
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98) | |
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98) | |
at sbt.State$$anon$1.process(State.scala:184) | |
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98) | |
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98) | |
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17) | |
at sbt.MainLoop$.next(MainLoop.scala:98) | |
at sbt.MainLoop$.run(MainLoop.scala:91) | |
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:70) | |
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:65) | |
at sbt.Using.apply(Using.scala:24) | |
at sbt.MainLoop$.runWithNewLog(MainLoop.scala:65) | |
at sbt.MainLoop$.runAndClearLast(MainLoop.scala:48) | |
at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:32) | |
at sbt.MainLoop$.runLogged(MainLoop.scala:24) | |
at sbt.StandardMain$.runManaged(Main.scala:53) | |
at sbt.xMain.run(Main.scala:28) | |
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109) | |
at xsbt.boot.Launch$.withContextLoader(Launch.scala:128) | |
at xsbt.boot.Launch$.run(Launch.scala:109) | |
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35) | |
at xsbt.boot.Launch$.launch(Launch.scala:117) | |
at xsbt.boot.Launch$.apply(Launch.scala:18) | |
at xsbt.boot.Boot$.runImpl(Boot.scala:41) | |
at xsbt.boot.Boot$.main(Boot.scala:17) | |
at xsbt.boot.Boot.main(Boot.scala) | |
[error] Some keys were defined with the same name but different types: 'packageName' (java.lang.String, sbt.Task[java.lang.String]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// packagedApp/build.sbt | |
libraryDependencies ++= Seq( | |
"com.typesafe" % "config" % "1.2.1" | |
) | |
mainClass in Compile := Some("ExampleApp") | |
enablePlugins(JavaAppPackaging/*, JDebPackaging*/) | |
maintainer := "Josh Suereth <[email protected]>" | |
packageSummary := "Minimal Native Packager" | |
packageDescription := """A fun package description of our software, | |
with multiple lines.""" | |
// RPM SETTINGS | |
rpmVendor := "typesafe" | |
rpmLicense := Some("BSD") | |
rpmChangelogFile := Some("changelog.txt") | |
// these settings are conflicting | |
javaOptions in Universal ++= Seq( | |
"-J-Xmx64m", "-J-Xms64m", | |
"-jvm-debug 12345" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// project/build.properties | |
sbt.version=0.13.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// project/build.scala | |
import sbt._ | |
import Keys._ | |
object TestBuild extends Build { | |
lazy val androidApp = project | |
lazy val packagedApp = project | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// project/plugins.sbt | |
addSbtPlugin("com.hanhuy.sbt" % "android-sdk-plugin" % "1.4.5_nadav") | |
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.3") | |
val bcVersion = "1.52" | |
dependencyOverrides += "org.bouncycastle" % "bcprov-jdk15on" % bcVersion | |
dependencyOverrides += "org.bouncycastle" % "bcpkix-jdk15on" % bcVersion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment