I don't know how gradle works but looking at `mvn dependency:tree` gives me the following
[INFO] org.geotools:gt-api:jar:32-SNAPSHOT [INFO] +- commons-pool:commons-pool:jar:1.5.4:compile [INFO] +- systems.uom:systems-common:jar:2.1:compile [INFO] | +- javax.measure:unit-api:jar:2.1.3:compile [INFO] | +- si.uom:si-quantity:jar:2.1:compile [INFO] | \- si.uom:si-units:jar:2.1:compile [INFO] | \- jakarta.annotation:jakarta.annotation-api:jar:1.3.4:compile [INFO] +- tech.units:indriya:jar:2.1.3:compile [INFO] | +- tech.uom.lib:uom-lib-common:jar:2.1:compile [INFO] | +- javax.inject:javax.inject:jar:1:compile [INFO] | \- org.apiguardian:apiguardian-api:jar:1.1.1:compile [INFO] +- org.locationtech.jts:jts-core:jar:1.19.0:compile [INFO] +- javax.media:jai_codec:jar:1.1.3:test [INFO] +- javax.media:jai_core:jar:1.1.3:compile [INFO] \- junit:junit:jar:4.13.1:test [INFO] \- org.hamcrest:hamcrest-core:jar:1.3:test So it should be pulled in via gt-api Ian On Tue, 14 May 2024 at 10:18, 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-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Ian Turton
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users