sbt-pack icon indicating copy to clipboard operation
sbt-pack copied to clipboard

Copy Runtime dependencies.

Open alecuba16 opened this issue 1 year ago • 4 comments

Hi!

I'm trying to copy a runtime dependency "mysql-connector-java" which is defined as:

lazy val hbase = (project in file("hbase")) .enablePlugins(PackPlugin) .settings( libraryDependencies ++= Seq( // add hadoop dependencies "org.apache.hbase" % "hbase-client" % "1.4.13", "org.apache.spark" %% "spark-core" % sparkVersion, "org.apache.spark" %% "spark-sql" % sparkVersion, // mysql driver "mysql" % "mysql-connector-java" % "5.1.49" % Runtime), ) )

Launching sbt hbase/pack doesn't copy the mysql-*.jar to the /lib directory.

Do I have to configure something more to force the copy of that jar to the /lib directory?

thanks!

alecuba16 avatar Mar 21 '23 15:03 alecuba16

seems like a regression at some point? or maybe we're doing something wrong, because i don't see how this wouldn't be a bigger issue. we're upgrading from v0.12 (which copies runtime dependencies) to v0.17, and the runtime jars are no longer included in lib so we're crashing at startup

codingismy11to7 avatar May 15 '23 16:05 codingismy11to7

just confirmed that runtime dependencies are copied on v0.16, so just upgrading to that version for the time being

codingismy11to7 avatar May 15 '23 17:05 codingismy11to7

Same problem in my environment. it occurs from sbt-pack v0.17 to latest version.

darklore avatar May 09 '24 14:05 darklore

@alecuba16 @codingismy11to7 It seems hbase/Runtime/pack packs runtime dependencies

darklore avatar Jul 10 '24 02:07 darklore