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

Using ivy2local in an integration test #139

Open
daddykotex opened this issue Feb 9, 2023 · 2 comments
Open

Using ivy2local in an integration test #139

daddykotex opened this issue Feb 9, 2023 · 2 comments

Comments

@daddykotex
Copy link

Hi, thanks for your project, love it.

Recently, I had the following issue: I have a module that I test with this project, and it depends on a library that had published locally. The integration test was not able to find it.

I believe that's because the run overrides the ivy.home to a local repository. I found a workaround which requires me to add the following at the top of my test build.sc:

import $repo.`ivy:file:///path/to/home/.ivy2/local/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]`

This is fine by me because I was just testing to see if everything worked locally before issuing official releases, but I was wondering if there was a shorthand like import $repo.ivy2Local that I could use or something like that.

Thanks

@daddykotex
Copy link
Author

In the best case, there is such a short hand.

In the worst case, there is not and people can just find this issue if they have a similar issue and we can close this.

@lefou
Copy link
Owner

lefou commented Apr 27, 2023

Maybe, I can avoid re-setting the ivy-home property and instead add a import $repo to the already generated plugins.sc 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