[GRADLE-1371] Java 7 Source and Target Compatibility Created: 04/Feb/11  Updated: 04/Jan/13  Resolved: 04/Feb/11

Status: Resolved
Project: Gradle
Affects Version/s: 0.9.2
Fix Version/s: 1.0-milestone-1

Type: Improvement
Reporter: Robert Fischer Assignee: Peter Niederwieser
Resolution: Fixed Votes: 0


 Description   

If you set sourceCompatibilty or targetCompatibility to "7", you get the following error:

Cause: Could not determine java version from '7'.

This, however, works just fine:

tasks.withType(Compile).allTasks { Compile compile ->
compile.options.compilerArgs = ['-source', '7', '-target', '7']
}

Gradle needs to update its mapping of Java versions to support Java 7 before Java 7 is released. (IF Java 7 is ever released...)



 Comments   
Comment by Pablo Munoz [ 10/May/12 ]

Is this available in rc-3?

Comment by Peter Niederwieser [ 10/May/12 ]

Yes, it was fixed more than a year ago.

Generated at Wed Jun 30 11:53:51 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.