Details
-
Type:
Bug
-
Status:
Reopened
-
Resolution: Unresolved
-
Affects Version/s: 1.0-milestone-9
-
Fix Version/s: None
Description
Consider the following simple script:
build.gradle
apply plugin: 'java'
configurations {
all*.exclude group: 'commons-logging', module: 'commons-logging'
}
repositories {
mavenLocal()
}
dependencies {}
test {
useTestNG()
}
compileJava {
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
options.encoding = 'UTF-8'
options.compilerArgs = ['-Xlint', '-Xlint:-serial', '-Xlint:-path']
}
compileTestJava {
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
options.encoding = 'UTF-8'
options.compilerArgs = ['-Xlint', '-Xlint:-serial', '-Xlint:-path']
}
We're expecting to see language level '1.7' from org.gradle.tooling.model.idea.IdeaProject.getLanguageLevel() built against the script. Unfortunately, it always returns 1.6 (default value?).
Activity
Szczepan Faber
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Resolution | Not A Bug [ 6 ] | |
| Assignee | Szczepan Faber [ szczepiq ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
Szczepan Faber
made changes -
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
| Resolution | Not A Bug [ 6 ] |
Luke Daley
made changes -
| Workflow | jira with pivotal tracker [ 15471 ] | jira with pivotal tracker (no resolved, only closed) [ 18736 ] |
Luke Daley
made changes -
| Workflow | jira with pivotal tracker (no resolved, only closed) [ 18736 ] | Copy of jira with pivotal tracker (no closed, only resolved) [ 21333 ] |
Unable to get TeamCity builds: No active plugin license is found! Please visit http://stiltsoft.com/teamcity for details
Hey,
You should configure the compatibility outside of the tasks, i.e. as top-level elements of the build.gradle: