{"action":"created","issue":{"url":"https://api.github.com/repos/grails-plugins/grails-spring-security-core/issues/407","labels_url":"https://api.github.com/repos/grails-plugins/grails-spring-security-core/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/grails-plugins/grails-spring-security-core/issues/407/comments","events_url":"https://api.github.com/repos/grails-plugins/grails-spring-security-core/issues/407/events","html_url":"https://github.com/grails-plugins/grails-spring-security-core/issues/407","id":125015438,"number":407,"title":"spring-security-core 3.0.1 won't run on Java 7","user":{"login":"mjcmatrix","id":9001393,"avatar_url":"https://avatars.githubusercontent.com/u/9001393?v=3","gravatar_id":"","url":"https://api.github.com/users/mjcmatrix","html_url":"https://github.com/mjcmatrix","followers_url":"https://api.github.com/users/mjcmatrix/followers","following_url":"https://api.github.com/users/mjcmatrix/following{/other_user}","gists_url":"https://api.github.com/users/mjcmatrix/gists{/gist_id}","starred_url":"https://api.github.com/users/mjcmatrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjcmatrix/subscriptions","organizations_url":"https://api.github.com/users/mjcmatrix/orgs","repos_url":"https://api.github.com/users/mjcmatrix/repos","events_url":"https://api.github.com/users/mjcmatrix/events{/privacy}","received_events_url":"https://api.github.com/users/mjcmatrix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-05T17:40:58Z","updated_at":"2016-01-05T19:52:57Z","closed_at":null,"body":"\r\nA simple s2-quickstart 'hello world' test app that depends on spring-security-core 3.0.1 will compile but not run in a Java 7 build environment due to version 52 class files compiled with Java 8 in spring-security-core.\r\n\r\n(3.0.0 does not have this dependency but 'hello world' will not run without workarounds either due to issues such as #401.)\r\n\r\nIs Java 8 now the minimum compile version for a secure Grails app, i.e. is this intentional?\r\n\r\nException java.lang.UnsupportedClassVersionError is thrown on 'grails run-app'. Stack trace snippet:\r\n\r\n    Caused by: java.lang.UnsupportedClassVersionError: grails/plugin/springsecurity/SpringSecurityCoreGrailsPlugin : Unsupported major.minor version 52.0\r\n    \tat java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.7.0_91]\r\n\r\nThis is in environment:\r\n\r\n    Java version \"1.7.0_91\"\r\n    OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-0ubuntu0.14.04.1)\r\n    OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)\r\n    \r\n    Grails 3.1.0.RC1\r\n\r\nSteps to reproduce:\r\n\r\n    grails create-app testproject\r\n    cd testproject\r\n    # Add spring-security-core dependency to build.gradle as per 'Getting Started guide'\r\n    grails compile\r\n    grails s2-quickstart co.example User Role --groupClassName=RoleGroup\r\n    grails run-app\r\n"},"comment":{"url":"https://api.github.com/repos/grails-plugins/grails-spring-security-core/issues/comments/169110821","html_url":"https://github.com/grails-plugins/grails-spring-security-core/issues/407#issuecomment-169110821","issue_url":"https://api.github.com/repos/grails-plugins/grails-spring-security-core/issues/407","id":169110821,"user":{"login":"mjcmatrix","id":9001393,"avatar_url":"https://avatars.githubusercontent.com/u/9001393?v=3","gravatar_id":"","url":"https://api.github.com/users/mjcmatrix","html_url":"https://github.com/mjcmatrix","followers_url":"https://api.github.com/users/mjcmatrix/followers","following_url":"https://api.github.com/users/mjcmatrix/following{/other_user}","gists_url":"https://api.github.com/users/mjcmatrix/gists{/gist_id}","starred_url":"https://api.github.com/users/mjcmatrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjcmatrix/subscriptions","organizations_url":"https://api.github.com/users/mjcmatrix/orgs","repos_url":"https://api.github.com/users/mjcmatrix/repos","events_url":"https://api.github.com/users/mjcmatrix/events{/privacy}","received_events_url":"https://api.github.com/users/mjcmatrix/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T19:52:57Z","updated_at":"2016-01-05T19:52:57Z","body":"Ubuntu 14.04 LTS (chosen server and desktop platform) does not have OpenJDK 8 yet in official packages. The proprietary Oracle 8 installer will have to be used."}}