nkonev / r2dbc-migrate

R2DBC database migration library
https://nkonev.name/post/136
Apache License 2.0
98 stars 9 forks source link

Java 8 is not supported #2

Closed momega closed 4 years ago

momega commented 4 years ago

Recently I have found your library and it seems to me that it will help with migrating my database in r2dbc environment. But I found than I cannot use it because your library is compilted with higher version of Java.

11 Error message looks like this: ``` Caused by: java.lang.UnsupportedClassVersionError: name/nkonev/r2dbc/migrate/autoconfigure/R2dbcMigrateAutoConfiguration$R2dbcConnectionFactoryDependsOnBeanFactoryPostProcessor has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_242] at java.lang.ClassLoader.defineClass(ClassLoader.java:757) ~[na:1.8.0_242] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_242] at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[na:1.8.0_242] at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[na:1.8.0_242] at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[na:1.8.0_242] at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[na:1.8.0_242] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_242] at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[na:1.8.0_242] at java.lang.ClassLoader.loadClass(ClassLoader.java:419) ~[na:1.8.0_242] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) ~[na:1.8.0_242] at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ~[na:1.8.0_242] at java.lang.Class.forName0(Native Method) ~[na:1.8.0_242] at java.lang.Class.forName(Class.java:348) ~[na:1.8.0_242] at org.springframework.util.ClassUtils.forName(ClassUtils.java:285) ~[spring-core-5.2.6.RELEASE.jar:5.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:469) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1545) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1472) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE] ... 16 common frames omitted ``` I still using Java 8. Will be possible to compile the library with target compatibility with java 8. Thanks.
nkonev commented 4 years ago

I've just released 1.0.3, it will be available at the maven central after several hours.

nkonev commented 4 years ago

Already https://repo.maven.apache.org/maven2/name/nkonev/r2dbc-migrate/r2dbc-migrate-core/1.0.3/