valtech / aem-easy-content-upgrade

AEM Easy Content Upgrade simplifies content migrations in AEM projects
Other
61 stars 26 forks source link

Project not building with JDK11 #118

Closed gruberrolandvaltech closed 4 years ago

gruberrolandvaltech commented 4 years ago

Tests are failing.

gruberrolandvaltech commented 4 years ago

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.805 s <<< FAILURE! - in de.valtech.aecu.core.groovy.console.bindings.filters.FilterByHasPropertyTest [ERROR] de.valtech.aecu.core.groovy.console.bindings.filters.FilterByHasPropertyTest Time elapsed: 0.803 s <<< ERROR! org.mockito.exceptions.base.MockitoException:

Mockito cannot mock this class: interface org.apache.sling.api.resource.Resource.

Mockito can only mock non-private & non-final classes. If you're not sure why you're getting this error, please report to the mailing list.

Java : 11 JVM vendor name : Oracle Corporation JVM vendor version : 11.0.4+10-LTS JVM name : Java HotSpot(TM) 64-Bit Server VM JVM version : 11.0.4+10-LTS JVM info : mixed mode OS name : Mac OS X OS version : 10.15.3

Underlying exception : java.lang.UnsupportedOperationException: Cannot define class using reflection Caused by: java.lang.UnsupportedOperationException: Cannot define class using reflection Caused by: java.lang.IllegalArgumentException: Unknown Java version: 11

gruberrolandvaltech commented 4 years ago

Part of https://github.com/valtech/aem-easy-content-upgrade/pull/117