We're Hiring!

Minimal Gradle Dependency for Java Client?

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Minimal Gradle Dependency for Java Client?

Postby bbimber » Fri Sep 21, 2018 8:30 pm

Hello,

I am writing a java program that depends on the omero java client for the purpose of using that client to view thumbnails and possibly do other basic functions. I am currently following the pattern here (https://github.com/ome/minimal-omero-cl ... ild.gradle), I am declaring a dependency on blitz and formats-gpl. However, omero:blitz brings in a lot of other dependencies that are causing me headaches (many lower versions of common dependencies including lucene, bouncycastle and now ehcache). It's possible I'm missing some gradle feature that would help me; however, is there a more minimal artifact omero artifact available? It seems like many of these dependencies causing me problems are really only relevant for an omero server, not a remote client. I thought I'd check before going too much further down this road. Thanks in advance.
bbimber
 
Posts: 8
Joined: Thu Oct 29, 2015 4:00 pm

Re: Minimal Gradle Dependency for Java Client?

Postby jmoore » Fri Sep 21, 2018 8:49 pm

Evening, Benjamin,

this is probably the most comprehensive set of excludes that I know of https://github.com/glencoesoftware/omero-ms-core/blob/master/build.gradle


Code: Select all
configurations.all {
    resolutionStrategy.cacheChangingModulesFor 0, 'minutes'
    exclude group: 'OME'
    exclude group: 'antlr'
    exclude group: 'asm'
    exclude group: 'backport-util-concurrent'
    exclude group: 'batik'
    exclude group: 'cglib'
    exclude group: 'com.codahale.metrics'
...etc...


Cheers,
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Minimal Gradle Dependency for Java Client?

Postby bbimber » Fri Sep 21, 2018 8:56 pm

great, thanks.
bbimber
 
Posts: 8
Joined: Thu Oct 29, 2015 4:00 pm


Return to Developer Discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron