-
Notifications
You must be signed in to change notification settings - Fork 7
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
add simple-omero-client as dependency in a build.gradle file #30
Comments
Hi @Rdornier, I'm not sure how to properly configure GitHub Maven repos. Maybe try with this URL first, and if it works, then that means the problem comes from the interaction with GitHub. |
Hello @ppouchin , Thanks for your answer.
I read github instructions but it seems that the package is public so I don't need to authenticate, right ?
Thanks, cc to @lacan and @NicoKiaru |
Ok. This is strange. I wanted to make a QuPath extension based on the OMERO Java API too a few months ago, but I still haven't had time to do so. The attached patch works for me. Could it be a problem with the cache? |
Yes, it's strange. By the way, we are currently working on a QuPath extension using the Java API and it is exactly this project for which I cannot add simple-omero-client dependency ! You can find the actual state of the code here ; it is a branch of the qupath-extension-omero named omero-raw. |
That's what I guessed from the linked repo. If I can, I'll try it later on a different OS with no trace of a Gradle project whatsoever, just to be sure. |
Ok, I just tried it on a different system (Debian, never used for Java dev), and it works. |
Hello Thanks to the great help of @lacan, we manage to add
The only thing is that we need to add By the way, I just want to mention that doing this way (with shadow dependencies), java reflection methods do not work in the IDE but they are working outside. Thanks also to @NicoKiaru for the time spent to trying to debug and understand what's happened. |
Hello @ppouchin, @petebankhead Sorry for reviving this issue. My gradle file, where the dependency is included, is here ; the repo is also added When I build, I get the following error, saying that the process fails in the build.gradle of the qupath-app (here)
Do you have an idea on how I could make it work ? Thanks, |
Hello @Rdornier , It looks like the build is failing in IntelliJ. |
@Rdornier does the info here help? Specifically the bit about |
Sorry for my late answer.
It still fails
I don't have any Conda environnement to built it. However, I tried adding the dependency in another gradle-based project and it worked without any issue. It seems to be intelliJ-qupath-related (or at least the qupath-project configuration on my intelliJ) but I cannot find out any clue... |
If you try to setup the project anew on a different machine, or in a different folder, does it work? It think I did not encounter such a problem when I tried to build the project on my computer. |
Hello, |
It was a while ago, but I think I just cloned it, opened it in IntelliJ and checked out the omero-raw branch. |
If it persists across devices, could it be a network problem alternatively? |
Ok, I tested two things
Yes, I can access to it via the browser
I tested the option 2. on my personal computer (outside the network) and on another computer on network but it gave the same. I suspect a restriction in the |
I haven't totally followed this, but I've just downloaded the code from Some notes:
Doing the above gave me many dependencies inside build/libs/ - and this includes simple-omero-client-5.14.0.jar. So building alone was fine. To get it working from QuPath v0.4.4, I made sure that the QuPath code was in a directory beside the extension code. Then I changed two things in on the QuPath side:
maven{
url "https://artifacts.igred.fr/releases"
} That was enough to make IntelliJ happy. |
Basically, it seems that if you use There can also be some annoyances when it comes to library catalogs and plugins, whereby I sometimes need to modify my extension build.gradle to make it run-via-include-flat-friendly. So there's definitely something sub-optimal about trying to get QuPath and extensions working together nicely during development. |
Adding the repo here makes everything working fine ! Thank you very much @petebankhead @ppouchin for your help ! It was so annoying to add the jar/pom manually ! |
Good! There are so many places repos can be defined in Gradle (for code, plugins, extensions) that I don't have a good idea exactly where each declaration needs to be. |
Hello @ppouchin,
I have an issue when I try to add simple-omero-client as a dependency in this build.gradle file but I has not been able to make it work.
I try to put
implementation "fr.igred:simple-omero-client:5.9.1"
in the "dependencies" but an error is thrown saying thatorg.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find GReD-Clermont:simple-omero-client:5.9.1.
The same error occurs when I wrote
implementation "com.github.pkg.maven:simple-omero-client:5.9.1"
.I also try to add a repository in the "repositories" field using
but it seems that it is not taken into account because the same error is thrown.
Do you know how to add the dependency to the build.gradle correctly ?
Thanks,
Rémy.
ping @romainGuiet
The text was updated successfully, but these errors were encountered: