{"action":"created","issue":{"url":"https://api.github.com/repos/gradle/gradle/issues/627","repository_url":"https://api.github.com/repos/gradle/gradle","labels_url":"https://api.github.com/repos/gradle/gradle/issues/627/labels{/name}","comments_url":"https://api.github.com/repos/gradle/gradle/issues/627/comments","events_url":"https://api.github.com/repos/gradle/gradle/issues/627/events","html_url":"https://github.com/gradle/gradle/pull/627","id":151711746,"number":627,"title":"Remove \"optimization\" that omitted -source and -target from javac","user":{"login":"rjernst","id":289412,"avatar_url":"https://avatars.githubusercontent.com/u/289412?v=3","gravatar_id":"","url":"https://api.github.com/users/rjernst","html_url":"https://github.com/rjernst","followers_url":"https://api.github.com/users/rjernst/followers","following_url":"https://api.github.com/users/rjernst/following{/other_user}","gists_url":"https://api.github.com/users/rjernst/gists{/gist_id}","starred_url":"https://api.github.com/users/rjernst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjernst/subscriptions","organizations_url":"https://api.github.com/users/rjernst/orgs","repos_url":"https://api.github.com/users/rjernst/repos","events_url":"https://api.github.com/users/rjernst/events{/privacy}","received_events_url":"https://api.github.com/users/rjernst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-28T18:29:24Z","updated_at":"2016-04-28T21:58:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gradle/gradle/pulls/627","html_url":"https://github.com/gradle/gradle/pull/627","diff_url":"https://github.com/gradle/gradle/pull/627.diff","patch_url":"https://github.com/gradle/gradle/pull/627.patch"},"body":"See\r\nhttps://discuss.gradle.org/t/source-and-target-are-only-passed-to-javac-when-java-version-is-different-than-gradle-java-version/17235\r\nand elastic/elasticsearch#18039\r\n\r\nNote this is currently untested because the tip of master does not even compile in gradle..."},"comment":{"url":"https://api.github.com/repos/gradle/gradle/issues/comments/215575307","html_url":"https://github.com/gradle/gradle/pull/627#issuecomment-215575307","issue_url":"https://api.github.com/repos/gradle/gradle/issues/627","id":215575307,"user":{"login":"rjernst","id":289412,"avatar_url":"https://avatars.githubusercontent.com/u/289412?v=3","gravatar_id":"","url":"https://api.github.com/users/rjernst","html_url":"https://github.com/rjernst","followers_url":"https://api.github.com/users/rjernst/followers","following_url":"https://api.github.com/users/rjernst/following{/other_user}","gists_url":"https://api.github.com/users/rjernst/gists{/gist_id}","starred_url":"https://api.github.com/users/rjernst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjernst/subscriptions","organizations_url":"https://api.github.com/users/rjernst/orgs","repos_url":"https://api.github.com/users/rjernst/repos","events_url":"https://api.github.com/users/rjernst/events{/privacy}","received_events_url":"https://api.github.com/users/rjernst/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T21:58:35Z","updated_at":"2016-04-28T21:58:35Z","body":"> Gradle is not able to detect Java 9 correctly (it seems to detect is as Java 8). Maybe this is a Verona-Problem (new versioning scheme)\r\n\r\nThis isn't actually true. In this case, in order to compile with java 9, we have org.gradle.java.home set to a java 8 home, and JAVA_HOME set to a java 9 home, and then override the executable for JavaCompile tasks to javac under JAVA_HOME (ie java 9). This is why gradle \"thinks\" it is java 8, and thus does not add the -source or -target to the javac flags."}}