Page 1 of 1

Minimal Gradle Dependency for Java Client?

PostPosted: Fri Sep 21, 2018 8:30 pm
by bbimber
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.

Re: Minimal Gradle Dependency for Java Client?

PostPosted: Fri Sep 21, 2018 8:49 pm
by jmoore
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

Re: Minimal Gradle Dependency for Java Client?

PostPosted: Fri Sep 21, 2018 8:56 pm
by bbimber
great, thanks.