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

Copy Runtime dependencies. #378

Open
alecuba16 opened this issue Mar 21, 2023 · 4 comments
Open

Copy Runtime dependencies. #378

alecuba16 opened this issue Mar 21, 2023 · 4 comments
Labels

Comments

@alecuba16
Copy link

alecuba16 commented Mar 21, 2023

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!

@codingismy11to7
Copy link

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
Copy link

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

@darklore
Copy link

darklore commented May 9, 2024

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

@darklore
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants