[CI] libcryostat
should not only target JDK 11, but should be built with JDK 11
#425
Labels
libcryostat
should not only target JDK 11, but should be built with JDK 11
#425
See #416
Currently, the
cryostat-core
andcryostat-core-parent
define Java and Maven/compiler versions at 17:(
cryostat-core/pom.xml
Line 68 in f6da0a3
cryostat-core/cryostat-core/pom.xml
Line 55 in f6da0a3
whereas
libcryostat
is intentionally requiring only Java 11:(
cryostat-core/libcryostat/pom.xml
Line 49 in f6da0a3
However, the two modules and the parent project are all built together in the end using JDK 17:
cryostat-core/.github/workflows/push-ci.yml
Line 18 in f6da0a3
This results in classes with the correct class file version, ex.:
but it is not actually guaranteed that JDK 17 is able to generate bytecode that a JDK 11 JVM will understand. To guarantee this,
cryostat-core
should be built with JDK 17, butlibcryostat
must be built with JDK 11, then both of those must be published as-is rather than rebuilt using JDK 17 fromcryostat-core-parent
.The text was updated successfully, but these errors were encountered: