These are chat archives for sbt/sbt
A relaxed chat room about sbt (That interactive build tool). For getting help on sbt, we encourage people to document it on Stackoverflow or subscribing to Lightbend subscription.
so <command>variants, that entire sentence is unnecessary. This is obviously not a huge deal, but it doesn't really read well to me (as someone who uses this type of setup and the collaboration of these plugins in multiple projects).
2.10is a problem for me, and I see a
1.0milestone, but not quite sure the best place to follow progress, as it would be nice to plan our work loosely around when that will become available.
sbt newwith a local template? I wanted to test a template before pushing it to github
sbtseems like the promised land...
submodule/myAliasisn’t a valid key. Any ideas on how to fix this?
src/foo/scalaand its own run task? I don’t want it to depend on the output of
src/main/scala, but I do want it to share the same set of dependencies.
I’m having a weird issue with
sbt-assembly if anyone could help
When trying to create fat jar to deploy to Spark with shading applied to
shapeless libraries, I am seeing some classes not being renamed when ran in an Ubuntu machine while everything gets renamed fine when the
sbt assembly is ran in Mac.
Here’s the shading config
assemblyShadeRules in assembly := Seq( ShadeRule.rename("shapeless.**" -> "shadedshapeless.@1") .inLibrary("com.chuusai" % "shapeless_2.11" % "2.3.2") .inLibrary("com.github.pureconfig" % "pureconfig_2.11" % "0.7.0") .inProject)
When ran in Mac, these classes are renamed for pattern
Renamed shapeless/Generic$.class -> shadedshapeless/Generic$.class Renamed shapeless/Generic.class -> shadedshapeless/Generic.class Renamed shapeless/Generic1$.class -> shadedshapeless/Generic1$.class Renamed shapeless/Generic1$class.class -> shadedshapeless/Generic1$class.class Renamed shapeless/Generic1.class -> shadedshapeless/Generic1.class Renamed shapeless/Generic10$class.class -> shadedshapeless/Generic10$class.class Renamed shapeless/Generic10.class -> shadedshapeless/Generic10.class Renamed shapeless/Generic1Macros$$anonfun$1.class -> shadedshapeless/Generic1Macros$$anonfun$1.class Renamed shapeless/Generic1Macros$$anonfun$2.class -> shadedshapeless/Generic1Macros$$anonfun$2.class Renamed shapeless/Generic1Macros.class -> shadedshapeless/Generic1Macros.class Renamed shapeless/GenericMacros$$anonfun$23.class -> shadedshapeless/GenericMacros$$anonfun$23.class Renamed shapeless/GenericMacros.class -> shadedshapeless/GenericMacros.class
but when ran in Ubuntu, for the pattern
shapless/Generic* only these things are renamed
Renamed shapeless/GenericMacros$$anonfun$23.class -> shadedshapeless/GenericMacros$$anonfun$23.class Renamed shapeless/Generic1Macros$$anonfun$1.class -> shadedshapeless/Generic1Macros$$anonfun$1.class Renamed shapeless/Generic1$.class -> shadedshapeless/Generic1$.class Renamed shapeless/Generic1.class -> shadedshapeless/Generic1.class
I chose the pattern
shapeless/Generic* coz when am providing the fat jar (produced in Ubuntu) to
spark-submit then am getting the error right away (probably coming from
Exception in thread "main" java.lang.NoClassDefFoundError: shadedshapeless/Generic
No error occurs when fat jar produced in Mac is being fed to
"com.github.tototoshi" %% "slick-joda-mapper" % "2.3.0-custom"but for 2.12 i want to use
"com.github.tototoshi" %% "slick-joda-mapper" % "2.3.0"
Selecting previously unselected package sbt. (Reading database ... 9859 files and directories currently installed.) Preparing to unpack sbt-0.13.15.deb ... Unpacking sbt (0.13.15) ... dpkg: dependency problems prevent configuration of sbt: sbt depends on openjdk-8-jdk; however: Package openjdk-8-jdk is not installed. dpkg: error processing package sbt (--install): dependency problems - leaving unconfigured Errors were encountered while processing: sbt The command '/bin/sh -c dpkg -i sbt-0.13.15.deb' returned a non-zero code: 1
Hi all, can some kind soul explain the use of
packagedArtifact in(Compile, packageBin) += (artifact in(Compile, packageBin), OsgiKeys.bundle).identityMap
OsgiKeys.bundle is a
TaskKey[File] and I'd like to replace it with a
Initialize[Task[File]] (ie from a
identityMap isn't defined for it and I can't even figure out what it does. I'm guessing it has something to do with taking a tuple and (mumble) to (mumble)...
mapmethod on tuple to mean something that's not an actual Functor law map