{"action":"created","issue":{"url":"https://api.github.com/repos/ewerk/gradle-plugins/issues/97","repository_url":"https://api.github.com/repos/ewerk/gradle-plugins","labels_url":"https://api.github.com/repos/ewerk/gradle-plugins/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/ewerk/gradle-plugins/issues/97/comments","events_url":"https://api.github.com/repos/ewerk/gradle-plugins/issues/97/events","html_url":"https://github.com/ewerk/gradle-plugins/issues/97","id":317534536,"number":97,"title":"Querydsl : Add support for querydsl compiler args","user":{"login":"alvinmeimoun","id":3252195,"avatar_url":"https://avatars1.githubusercontent.com/u/3252195?v=4","gravatar_id":"","url":"https://api.github.com/users/alvinmeimoun","html_url":"https://github.com/alvinmeimoun","followers_url":"https://api.github.com/users/alvinmeimoun/followers","following_url":"https://api.github.com/users/alvinmeimoun/following{/other_user}","gists_url":"https://api.github.com/users/alvinmeimoun/gists{/gist_id}","starred_url":"https://api.github.com/users/alvinmeimoun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvinmeimoun/subscriptions","organizations_url":"https://api.github.com/users/alvinmeimoun/orgs","repos_url":"https://api.github.com/users/alvinmeimoun/repos","events_url":"https://api.github.com/users/alvinmeimoun/events{/privacy}","received_events_url":"https://api.github.com/users/alvinmeimoun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-25T08:50:47Z","updated_at":"2018-05-02T11:06:26Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nThe Maven QueryDSL plugin has possibility to add some custom parameters to the QueryDSL compiler. When i migrated my project to Gradle, i tried to find the same on this plugin but it doesn't seem available.\r\n\r\n\r\nThis is the Maven plugin configuration that contains the parameters\r\n```\r\n<options>\r\n<querydsl.entityAccessors>true</querydsl.entityAccessors>\r\n<querydsl.useFields>false</querydsl.useFields>\r\n</options>\r\n```\r\n\r\nThey change the way that QueryDSL are generated.\r\n\r\nI found a workaround without using the plugin but i needed to override the generateSources task ans manually manage generation. That is the goal of this plugin\r\n\r\n```\r\noptions.compilerArgs = ['-proc:only',\r\n                           '-processor',  \r\n                           'com.querydsl.apt.jpa.JPAAnnotationProcessor',  \r\n                           '-Aquerydsl.entityAccessors=true',  \r\n                           '-Aquerydsl.useFields=false']\r\n```\r\n\r\nI suggest to add these two parameters to this gradle plugin configuration.\r\nI also suggest to add a parameter that allow custom args for the compiler\r\n\r\nLike : \r\n```\r\nquerydsl {\r\n  useFields=false  \r\n  entityAccessors=true  \r\n}\r\n```\r\n\r\n```\r\nquerydsl {  \r\n  customArgs=['querydsl.entityAccessors=true','querydsl.useFields=false']  \r\n}\r\n```\r\n\r\nI think this issue can be labelled as feature request\r\n"},"comment":{"url":"https://api.github.com/repos/ewerk/gradle-plugins/issues/comments/385941646","html_url":"https://github.com/ewerk/gradle-plugins/issues/97#issuecomment-385941646","issue_url":"https://api.github.com/repos/ewerk/gradle-plugins/issues/97","id":385941646,"user":{"login":"alvinmeimoun","id":3252195,"avatar_url":"https://avatars1.githubusercontent.com/u/3252195?v=4","gravatar_id":"","url":"https://api.github.com/users/alvinmeimoun","html_url":"https://github.com/alvinmeimoun","followers_url":"https://api.github.com/users/alvinmeimoun/followers","following_url":"https://api.github.com/users/alvinmeimoun/following{/other_user}","gists_url":"https://api.github.com/users/alvinmeimoun/gists{/gist_id}","starred_url":"https://api.github.com/users/alvinmeimoun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvinmeimoun/subscriptions","organizations_url":"https://api.github.com/users/alvinmeimoun/orgs","repos_url":"https://api.github.com/users/alvinmeimoun/repos","events_url":"https://api.github.com/users/alvinmeimoun/events{/privacy}","received_events_url":"https://api.github.com/users/alvinmeimoun/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T11:06:26Z","updated_at":"2018-05-02T11:06:26Z","author_association":"NONE","body":"Hi,\r\n\r\nI made a pull request\r\n\r\nAs you said i agree that it's difficult to make a correct list of options due to the changes per release.\r\nSo i just added a parameter name aptOptions (List) and these paramaters are passed as compiler agrs prefixed by \"-A\". It let the flexibility of APT parameters for any release of querydsl"}}
{"actor":{"display_login":"alvinmeimoun"}}