Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-2198

Tooling API: Deduce project language level from the java plugin properties via the Tooling API

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Reopened 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

  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
No commits found.

People

  • Assignee:
    Szczepan Faber
    Reporter:
    Denis Zhdanov
Vote (11)
Watch (11)

Dates

  • Created:
    27/Mar/12 3:19 AM
    Updated:
    18/May/12 4:58 AM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.