Closed chazanov closed 5 years ago
Hi @chazanov. I usually build with JDK8. But I have tried with JDK 10 and 11 in the past and it had some issues, some of which I was able to resolve here. It is still an experimental attempt, no real support there: here and here I do not remember seeing any issue with Checkstyle though. What JDK are you using?
@matthieun I'm building with JDK 10, which nearly works. Just a few tests fail:
> Task :test
org.openstreetmap.atlas.geography.boundary.CountryBoundaryMapTest > testDuplicateBoundary FAILED
java.lang.Exception: Unexpected exception, expected<org.openstreetmap.atlas.exception.CoreException> but was<java.lang.IllegalArgumentException>
Caused by:
java.lang.IllegalArgumentException: **org.geotools.styling.StyleFactory is not an ImageIO SPI class**
[..]
org.openstreetmap.atlas.utilities.runtime.RunScriptTest > testRunScript FAILED
org.openstreetmap.atlas.utilities.timezone.TimeZoneTest > testArizonaMultiPolygon FAILED
org.openstreetmap.atlas.utilities.timezone.TimeZoneTest > testBoundary FAILED
org.openstreetmap.atlas.utilities.timezone.TimeZoneTest > testIsland FAILED
1379 tests completed, 5 failed, 2 skipped
> Task :test FAILED
How can I (temporarily) completely disable the ":test" step?
I've tried to patch dependencies.gradle to fix the ImageIO problem (https://github.com/locationtech/udig-platform/issues/312)
- geotools: '17.0',
+ geotools: '19.4',
I can't increase the jts version, since it switches from com.vividsolutions:jts to com.locationtech:jts
Now there is only 1 test failure left:
> Task :test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.geotools.resources.NIOUtilities (file:/build/.gradle/caches/modules-2/files-2.1/org.geotools/gt-metadata/19.4/f788bd457e3448cb9238471f65664c50bc8826b4/gt-metadata-19.4.jar) to method java.nio.DirectByteBuffer.cleaner()
WARNING: Please consider reporting this to the maintainers of org.geotools.resources.NIOUtilities
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
org.openstreetmap.atlas.utilities.runtime.RunScriptTest > testRunScript FAILED
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertTrue(Assert.java:52)
at org.openstreetmap.atlas.utilities.runtime.RunScriptTest.testRunScript(RunScriptTest.java:49)
1379 tests completed, 1 failed, 2 skipped
Hello @chazanov I have updated the code to compile and test with OpenJDK 11: #366 Try this and let me know if it works for you. You can either wait for it to be merged, or apply the diff from the PR to a branch in your fork!
@chazanov The PR made it in to the dev & master branches. I will close that issue now. Re-open if you are still having issues. Thanks!
I've just tried to build with
./gradlew clean build --warning-mode all
But the build fails (platform is ArchLinux):
What's the maximum JDK version supported?