{"action":"created","issue":{"url":"https://api.github.com/repos/griffon/griffon/issues/85","labels_url":"https://api.github.com/repos/griffon/griffon/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/griffon/griffon/issues/85/comments","events_url":"https://api.github.com/repos/griffon/griffon/issues/85/events","html_url":"https://github.com/griffon/griffon/issues/85","id":103513900,"number":85,"title":"Add environment setting to lazybones templates","user":{"login":"swalton00","id":6137710,"avatar_url":"https://avatars.githubusercontent.com/u/6137710?v=3","gravatar_id":"","url":"https://api.github.com/users/swalton00","html_url":"https://github.com/swalton00","followers_url":"https://api.github.com/users/swalton00/followers","following_url":"https://api.github.com/users/swalton00/following{/other_user}","gists_url":"https://api.github.com/users/swalton00/gists{/gist_id}","starred_url":"https://api.github.com/users/swalton00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swalton00/subscriptions","organizations_url":"https://api.github.com/users/swalton00/orgs","repos_url":"https://api.github.com/users/swalton00/repos","events_url":"https://api.github.com/users/swalton00/events{/privacy}","received_events_url":"https://api.github.com/users/swalton00/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/griffon/griffon/labels/Enhancement","name":"Enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/griffon/griffon/milestones/5","html_url":"https://github.com/griffon/griffon/milestones/2.5.0","labels_url":"https://api.github.com/repos/griffon/griffon/milestones/5/labels","id":1262461,"number":5,"title":"2.5.0","description":"","creator":{"login":"aalmiray","id":13969,"avatar_url":"https://avatars.githubusercontent.com/u/13969?v=3","gravatar_id":"","url":"https://api.github.com/users/aalmiray","html_url":"https://github.com/aalmiray","followers_url":"https://api.github.com/users/aalmiray/followers","following_url":"https://api.github.com/users/aalmiray/following{/other_user}","gists_url":"https://api.github.com/users/aalmiray/gists{/gist_id}","starred_url":"https://api.github.com/users/aalmiray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aalmiray/subscriptions","organizations_url":"https://api.github.com/users/aalmiray/orgs","repos_url":"https://api.github.com/users/aalmiray/repos","events_url":"https://api.github.com/users/aalmiray/events{/privacy}","received_events_url":"https://api.github.com/users/aalmiray/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-08-19T12:49:14Z","updated_at":"2015-08-27T14:04:16Z","due_on":"2015-11-30T23:00:00Z","closed_at":null},"comments":1,"created_at":"2015-08-27T13:49:05Z","updated_at":"2015-08-27T14:09:44Z","closed_at":null,"body":"In the lazybones templates, please add an environment setting to the build.gradle to set the appropriate environment from the gradle command as:\r\n\r\n    if (project.hasProperty('environment')) {\r\n        applicationDefaultJvmArgs = ['-Dgriffon.env=' + environment]\r\n    }\r\n\r\n    run {\r\n        jvmArgs = ['-Dgriffon.env=dev']\r\n    }\r\n"},"comment":{"url":"https://api.github.com/repos/griffon/griffon/issues/comments/135446230","html_url":"https://github.com/griffon/griffon/issues/85#issuecomment-135446230","issue_url":"https://api.github.com/repos/griffon/griffon/issues/85","id":135446230,"user":{"login":"aalmiray","id":13969,"avatar_url":"https://avatars.githubusercontent.com/u/13969?v=3","gravatar_id":"","url":"https://api.github.com/users/aalmiray","html_url":"https://github.com/aalmiray","followers_url":"https://api.github.com/users/aalmiray/followers","following_url":"https://api.github.com/users/aalmiray/following{/other_user}","gists_url":"https://api.github.com/users/aalmiray/gists{/gist_id}","starred_url":"https://api.github.com/users/aalmiray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aalmiray/subscriptions","organizations_url":"https://api.github.com/users/aalmiray/orgs","repos_url":"https://api.github.com/users/aalmiray/repos","events_url":"https://api.github.com/users/aalmiray/events{/privacy}","received_events_url":"https://api.github.com/users/aalmiray/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T14:09:44Z","updated_at":"2015-08-27T14:09:44Z","body":"Looks like this feature already exists https://github.com/griffon/griffon/blob/development/subprojects/gradle-griffon-plugin/src/main/groovy/org/codehaus/griffon/gradle/GriffonPlugin.groovy#L283-L295\r\n\r\nuse `-DgriffonEnv=` to pass the desired value."}}