-
Notifications
You must be signed in to change notification settings - Fork 51
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
Protoquill transitive internal dependency breaks sbt-assembly #480
Comments
|
This might be a temporary work-around, but seems awfully fragile, because
The first potential fixes that occur to me are:
I could be wrong but it seems to me that protoquill is probably dependent on classpath ordering at the moment just to work at all. If so this seems like something that needs to be fixed even if 'playing nice' with sbt-assembly isn't deemed a high priority. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scala Version: 3.4.2
SBT Version: 1.10.1
Protoquill Version: 4.8.5
Module: quill-sql
Database: postgresql
Expected behavior
Expect to be able to use sbt-assembly to package a stand-alone executable jar file containing protoquill 4.8.5.
Actual behavior
sbt-assembly errors-out because protoquill 4.8.5 has a transitive dependency on quill-engine 4.8.4 and the two jars contain classes that are different, but have the same fully-qualified names. Two examples among many from the console output when I run "sbt assembly":
Apart from the "assembly" step, the project builds and runs ("sbt run") just fine. Running a trivial query that uses protoquill 4.8.5 from the project also works w/no problems. There seem to be no compile-time or runtime issues.
Steps to reproduce the behavior
Include protoquill in your build.sbt as:
"io.getquill" %% "quill-jdbc" % "4.8.5"
Add the sbt-assembly plugin to your plugins.sbt:
then run "sbt assembly"
Workaround
N/A
@getquill/maintainers
The text was updated successfully, but these errors were encountered: