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

altering classpathTypes is the wrong solution #5

Closed
hvesalai opened this issue Jul 19, 2016 · 2 comments
Closed

altering classpathTypes is the wrong solution #5

hvesalai opened this issue Jul 19, 2016 · 2 comments

Comments

@hvesalai
Copy link

While the classpathTypes hack does allow sbt to compile the JavaCPP dependent code, it will not produce a working .ivy file. The ivy file will have a default reference to the javacpp artifact and so it will not be included correctly in any downstream projects interpreting the ivy file.

The solution is to do

libraryDependencies += "org.bytedeco" % "javacpp" % "1.2.2" jar

(i.e. no classpathTypes, but instead "jar" added to the end of the row)

This will cause both sbt and the ivy generated by it to have a correct reference to the jar of javacpp.

@lloydmeta
Copy link
Member

Hi there,

Thanks for the heads up and the proposed solution. Can you try it out locally and send a PR ?

@hvesalai
Copy link
Author

hvesalai commented Jul 20, 2016

Hi, from the discussion in bytedeco/javacpp#113 I got the impression that the sub-optimal packaging of javacpp causing this whole problem is going to be changed so that the core of javacpp would be a normal jar and the maven-plugin would be a separate thing. If that would happen, then this and the classpathTypes hack would both be obsolete.

lloydmeta added a commit that referenced this issue Oct 14, 2016
- Now that JavaCPP is publishe as a jar, we can remove maven-plugin hack so that
  we can generat a proper ivy file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants