Relative Content

Tag Archive for gradlejargeotoolsshadowjar

Gradle -> Geotools -> FatJar -> missing classes

I have a project that I build FatJar from. Recently I have included additional dependencies from geotools. What I quickly discovered is that due to the geotools architecture I need to merge the META-INF/services, which I do using the mergeServiceFiles() in my shadowJar task. However, even with the mergeServiceFiles I still get an error:
WARNING: Can't load a service for category "Operation". Cause is "ServiceConfigurationError: org.geotools.api.coverage.processing.Operation: Provider org.geotools.coverage.processing.operation.ShadedRelief could not be instantiated".