[jboss-jira] [JBoss JIRA] (WFCORE-5038) Compile using JDK 11

Paul Ferraro (Jira) issues at jboss.org
Fri Jul 10 10:05:00 EDT 2020


     [ https://issues.redhat.com/browse/WFCORE-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Ferraro updated WFCORE-5038:
---------------------------------
    Description: 
As discussed on wildfly-dev mailing list, to enable the use of multi-release wildfly modules, we will:
 * Require JDK 11 to compile (for all modules except testsuite modules)
 ** Adjust compiler flags to use --release=8
 *** This is equivalent to: -source N -target N -bootclasspath <bootclasspath-from-N>
 * To ensure surefire tests are run against each supported JRE (wherever necessary), we will update the CI server maven settings to specify system properties for:
 ** java8.home
 ** java11.home
 * Update JDK8 specific CI servers to build with JDK 11, but run integration tests using Java 8.

One complication is the wildfly-cli module, which contains a dependency on the jdk.jconsole module.  Building on JDK 11 using -release 8 means that we cannot just include the --add-modules=jdk.jconsole compiler argument, we actually need to add a jar containing a jconsole stub to the classpath of the compiler.

  was:
As discussed on wildfly-dev mailing list, to enable the use of multi-release wildfly modules, we will:
 * Require JDK 11 to compile (for all modules except testsuite modules)
 ** Adjust compiler flags to use --release=8
 *** This is equivalent to: -source N -target N -bootclasspath <bootclasspath-from-N>
 * To ensure surefire tests are run against each supported JRE (wherever necessary), we will update the CI server maven settings to specify system properties for:
 ** java8.home
 ** java11.home
 * Update JDK8 specific CI servers to build with JDK 11, but run integration tests using Java 8.



> Compile using JDK 11
> --------------------
>
>                 Key: WFCORE-5038
>                 URL: https://issues.redhat.com/browse/WFCORE-5038
>             Project: WildFly Core
>          Issue Type: Task
>          Components: Build System
>    Affects Versions: 13.0.0.Beta1
>            Reporter: Paul Ferraro
>            Assignee: Paul Ferraro
>            Priority: Major
>
> As discussed on wildfly-dev mailing list, to enable the use of multi-release wildfly modules, we will:
>  * Require JDK 11 to compile (for all modules except testsuite modules)
>  ** Adjust compiler flags to use --release=8
>  *** This is equivalent to: -source N -target N -bootclasspath <bootclasspath-from-N>
>  * To ensure surefire tests are run against each supported JRE (wherever necessary), we will update the CI server maven settings to specify system properties for:
>  ** java8.home
>  ** java11.home
>  * Update JDK8 specific CI servers to build with JDK 11, but run integration tests using Java 8.
> One complication is the wildfly-cli module, which contains a dependency on the jdk.jconsole module.  Building on JDK 11 using -release 8 means that we cannot just include the --add-modules=jdk.jconsole compiler argument, we actually need to add a jar containing a jconsole stub to the classpath of the compiler.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)



More information about the jboss-jira mailing list