{"action":"created","issue":{"url":"https://api.github.com/repos/OpenAPITools/openapi-generator/issues/1380","repository_url":"https://api.github.com/repos/OpenAPITools/openapi-generator","labels_url":"https://api.github.com/repos/OpenAPITools/openapi-generator/issues/1380/labels{/name}","comments_url":"https://api.github.com/repos/OpenAPITools/openapi-generator/issues/1380/comments","events_url":"https://api.github.com/repos/OpenAPITools/openapi-generator/issues/1380/events","html_url":"https://github.com/OpenAPITools/openapi-generator/issues/1380","id":377512343,"node_id":"MDU6SXNzdWUzNzc1MTIzNDM=","number":1380,"title":"[Java][Question] Changing generated Java client dependency versions?","user":{"login":"tobymurray","id":3683198,"node_id":"MDQ6VXNlcjM2ODMxOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/3683198?v=4","gravatar_id":"","url":"https://api.github.com/users/tobymurray","html_url":"https://github.com/tobymurray","followers_url":"https://api.github.com/users/tobymurray/followers","following_url":"https://api.github.com/users/tobymurray/following{/other_user}","gists_url":"https://api.github.com/users/tobymurray/gists{/gist_id}","starred_url":"https://api.github.com/users/tobymurray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobymurray/subscriptions","organizations_url":"https://api.github.com/users/tobymurray/orgs","repos_url":"https://api.github.com/users/tobymurray/repos","events_url":"https://api.github.com/users/tobymurray/events{/privacy}","received_events_url":"https://api.github.com/users/tobymurray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-05T17:51:07Z","updated_at":"2018-11-06T14:04:56Z","closed_at":null,"author_association":"NONE","body":"##### Description\r\nRunning the `openapi-generator-cli.jar` presently yields a Gradle 2.6 project with the following dependency versions:\r\n```\r\n    compile 'io.swagger:swagger-annotations:1.5.17'\r\n    compile 'com.squareup.okhttp:okhttp:2.7.5'\r\n    compile 'com.squareup.okhttp:logging-interceptor:2.7.5'\r\n    compile 'com.google.code.gson:gson:2.8.1'\r\n    compile 'io.gsonfire:gson-fire:1.8.0'\r\n    compile group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.1'\r\n    compile 'org.threeten:threetenbp:1.3.5'\r\n    testCompile 'junit:junit:4.12'\r\n```\r\n\r\nThese are mostly significantly out of date (e.g. Gradle 4.10.2 now). Is this still a supported way to use this tool? I'm running into classpath problems because I'm using different major versions of these dependencies (e.g. okhttp) that are not backwards compatible with the versions in the generated client.\r\n\r\nIs there an avenue to configure the generated dependency versions or otherwise get them up to date? Is the generated client not typically used directly in this fashion (embedded in a larger project)?\r\n\r\n##### openapi-generator version\r\n3.3.0\r\n\r\n##### OpenAPI declaration file content or url\r\nDoesn't matter, can use `https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml`\r\n\r\n##### Command line used for generation\r\n\r\n```\r\njava -jar openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java -o output-directory\r\n```\r\n\r\n##### Steps to reproduce\r\n\r\nInvoke the above mentioned command\r\n\r\n##### Related issues/PRs\r\n\r\nNone that I can find\r\n\r\n##### Suggest a fix/enhancement\r\n\r\nMake clear how the dependency versions were determined and how they're controlled. Perhaps introduce a plan for keeping them up to date out of the box?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OpenAPITools/openapi-generator/issues/comments/436263560","html_url":"https://github.com/OpenAPITools/openapi-generator/issues/1380#issuecomment-436263560","issue_url":"https://api.github.com/repos/OpenAPITools/openapi-generator/issues/1380","id":436263560,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjI2MzU2MA==","user":{"login":"wing328","id":934260,"node_id":"MDQ6VXNlcjkzNDI2MA==","avatar_url":"https://avatars2.githubusercontent.com/u/934260?v=4","gravatar_id":"","url":"https://api.github.com/users/wing328","html_url":"https://github.com/wing328","followers_url":"https://api.github.com/users/wing328/followers","following_url":"https://api.github.com/users/wing328/following{/other_user}","gists_url":"https://api.github.com/users/wing328/gists{/gist_id}","starred_url":"https://api.github.com/users/wing328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wing328/subscriptions","organizations_url":"https://api.github.com/users/wing328/orgs","repos_url":"https://api.github.com/users/wing328/repos","events_url":"https://api.github.com/users/wing328/events{/privacy}","received_events_url":"https://api.github.com/users/wing328/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T14:04:56Z","updated_at":"2018-11-06T14:04:56Z","author_association":"MEMBER","body":"One way is to use customized templates with the `-t option.\r\n\r\nWe also welcome PRs ([example](https://github.com/OpenAPITools/openapi-generator/pull/1343)) to update the dependency to a newer version"}}
{"actor":{"display_login":"wing328"}}