The binary download of geotools includes an example program with
instructions for running int he README (so it is possible to use without
maven).
Does gradle handle transitive dependencies?

Checking GeoServer in IDE the Unit class is defined in unit-api-2.1.2.jar


--
Jody Garnett


On May 14, 2024 at 1:33:05 AM, Sara Schade <s.sch...@subsurfaceviewer.com>
wrote:

> Hi all,
>
> is there a known solution to integrate GeoTools correctly in a Gradle
> project? At the moment we are going from one dependency error during run to
> the next. At the moment we are stuck here:
>
> Caused by: java.lang.ClassNotFoundException: javax.measure.Unit
>
> at
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
>
> at
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
>
> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
>
> We have a composite build
> and our dependencies are:
>
> implementation 'org.geotools:gt-main:30.2'
>
> implementation 'org.geotools:gt-referencing:30.2'
>
> implementation 'org.geotools:gt-epsg-wkt:30.2'
>
> implementation 'org.geotools:gt-api:30.2'
>
> api 'org.locationtech.jts:jts-core:1.19.0'
>
> implementation 'org.geotools:gt-epsg-hsql:30.2'
>
> implementation 'org.geotools:gt-epsg-extension:30.2'
>
> implementation 'org.geotools:gt-metadata:30.2'
>
> implementation 'javax.media:jai_core:1.1.3'
>
> implementation 'org.geotools:gt-coverage:30.2'
>
> implementation 'org.geotools:gt-coverage-api:30.2'
>
> implementation 'org.geotools:gt-geotiff:30.2'
>
> implementation 'org.geotools:gt-shapefile:30.2'
> thank you.
> Best regards Sara
>
> --
> ------------------------
> Sara Schade
> Dipl.-Geol., Senior Scientist
> INSIGHT
> Geologische Softwaresysteme GmbH
> Tel.: 0176-21428186
> ------------------------
>
> _______________________________________________
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to