(Quick Reference)

3.7.2 Source and Target Levels - Reference Documentation

Authors: Andres Almiray

Version: 1.2.0

3.7.2 Source and Target Levels

Java source and target levels are chosen by the compiler to whatever values it picks by default (this is akin to specifying source and target in Ant's javac task). You can instruct the compiler to use a specific value by defining the following flags

griffon.project.source.level
griffon.project.target.level

For example, forcing JDK6 compatibility while using JDK7 can be done in this way

griffon -Dgriffon.project.source.level=1.6 -Dgriffon.project.target.level=1.6 compile