Since WildFly 8.1.0.Final was just released, the OpenShift WildFly cartridge has been updated as well and now includes support for Java 8! The WildFly cartridge now installs JDK 8 during instance creation since JDK 8 isn't available on OpenShift yet. All new WildFly applications on OpenShift will default to using Java 8. If you want to switch back to Java 7, simply rename the marker file in your application's git repo as follows:
git mv .openshift/markers/java8 .openshift/markers/java7
git commit -a -m "Switching to Java 7"
If you create a WildFly application based on an existing WildFly 8.0.0.Final or 8.1.0.CR1 OpenShift application using the --from-app command, your new WildFly 8.1.0.Final application will remain on Java 7. You can manually switch to Java 8 as follows:
1. In the pom.xml file in your application's git repo:
Change the maven.compiler.source and maven.compiler.target properties to: