{"action":"created","issue":{"url":"https://api.github.com/repos/takari/polyglot-maven/issues/49","labels_url":"https://api.github.com/repos/takari/polyglot-maven/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/takari/polyglot-maven/issues/49/comments","events_url":"https://api.github.com/repos/takari/polyglot-maven/issues/49/events","html_url":"https://github.com/takari/polyglot-maven/issues/49","id":106402605,"number":49,"title":"[polyglot-groovy] conversion to pom.groovy should generate dependencies w/ short syntax","user":{"login":"fbricon","id":148698,"avatar_url":"https://avatars.githubusercontent.com/u/148698?v=3","gravatar_id":"","url":"https://api.github.com/users/fbricon","html_url":"https://github.com/fbricon","followers_url":"https://api.github.com/users/fbricon/followers","following_url":"https://api.github.com/users/fbricon/following{/other_user}","gists_url":"https://api.github.com/users/fbricon/gists{/gist_id}","starred_url":"https://api.github.com/users/fbricon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbricon/subscriptions","organizations_url":"https://api.github.com/users/fbricon/orgs","repos_url":"https://api.github.com/users/fbricon/repos","events_url":"https://api.github.com/users/fbricon/events{/privacy}","received_events_url":"https://api.github.com/users/fbricon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-14T18:38:38Z","updated_at":"2015-09-14T21:14:16Z","closed_at":null,"body":"Converting this pom.xml\r\n```\r\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\r\n\t<modelVersion>4.0.0</modelVersion>\r\n\t<groupId>foo.bar</groupId>\r\n\t<artifactId>example</artifactId>\r\n\t<version>0.0.1-SNAPSHOT</version>\r\n\t<dependencies>\r\n\t\t<dependency>\r\n\t\t\t<groupId>junit</groupId>\r\n\t\t\t<artifactId>junit</artifactId>\r\n\t\t\t<version>4.12</version>\r\n\t\t\t<scope>test</scope>\r\n\t\t</dependency>\r\n\t</dependencies>\r\n</project>\r\n```\r\nto groovy yields this:\r\n```\r\nproject {\r\n  modelVersion '4.0.0'\r\n  groupId 'foo.bar'\r\n  artifactId 'example'\r\n  version '0.0.1-SNAPSHOT'\r\n  dependencies {\r\n    dependency {\r\n      groupId 'junit'\r\n      artifactId 'junit'\r\n      version '4.12'\r\n      scope 'test'\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nIt'd be great to get an even less verbose output, like:\r\n```\r\nproject {\r\n  modelVersion '4.0.0'\r\n  groupId 'foo.bar'\r\n  artifactId 'example'\r\n  version '0.0.1-SNAPSHOT'\r\n  dependencies {\r\n    dependency 'junit:junit:4.12:test'\r\n  }\r\n}\r\n```\r\nas this syntax is already supported\r\n"},"comment":{"url":"https://api.github.com/repos/takari/polyglot-maven/issues/comments/140207683","html_url":"https://github.com/takari/polyglot-maven/issues/49#issuecomment-140207683","issue_url":"https://api.github.com/repos/takari/polyglot-maven/issues/49","id":140207683,"user":{"login":"jdillon","id":20114,"avatar_url":"https://avatars.githubusercontent.com/u/20114?v=3","gravatar_id":"","url":"https://api.github.com/users/jdillon","html_url":"https://github.com/jdillon","followers_url":"https://api.github.com/users/jdillon/followers","following_url":"https://api.github.com/users/jdillon/following{/other_user}","gists_url":"https://api.github.com/users/jdillon/gists{/gist_id}","starred_url":"https://api.github.com/users/jdillon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdillon/subscriptions","organizations_url":"https://api.github.com/users/jdillon/orgs","repos_url":"https://api.github.com/users/jdillon/repos","events_url":"https://api.github.com/users/jdillon/events{/privacy}","received_events_url":"https://api.github.com/users/jdillon/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T21:14:16Z","updated_at":"2015-09-14T21:14:16Z","body":"I barely remember how that part of the codebase works.\n\nI do recall when I did this originally I left the output as close to the xml format so that folks would easily understand it, w/o assuming what flavor of config folks prefer.\n\n—jason\n\n\n\n\nOn September 14, 2015 at 12:33:40 PM, Fred Bricon (notifications@github.com) wrote:\n\nAnother alternative would be to generate a different xml in GroovyModelWriter#write, so gv:s would be generated instead. That way, no need to change Dom2Groovy\n\n—\nReply to this email directly or view it on GitHub.\n\n"}}