Title: Dependencies are no longer transitively added to consumer projects · Issue #494 · microsoftgraph/msgraph-sdk-java · GitHub
Open Graph Title: Dependencies are no longer transitively added to consumer projects · Issue #494 · microsoftgraph/msgraph-sdk-java
X Title: Dependencies are no longer transitively added to consumer projects · Issue #494 · microsoftgraph/msgraph-sdk-java
Description: With the upgrade to gradle 6 all dependencies were set to scope implementation. This means, their are no longer transitively added with compile scope to consumer projects. Expected behavior The POM microsoft-graph-2.2.0.pom should have c...
Open Graph Description: With the upgrade to gradle 6 all dependencies were set to scope implementation. This means, their are no longer transitively added with compile scope to consumer projects. Expected behavior The POM...
X Description: With the upgrade to gradle 6 all dependencies were set to scope implementation. This means, their are no longer transitively added with compile scope to consumer projects. Expected behavior The POM...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/494
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dependencies are no longer transitively added to consumer projects","articleBody":"\u003c!-- Read me before you submit this issue\r\n\r\nFirst off, thank you for taking the time to open this issue! We do appreciate it. Please bear with us if we don't get to this right away.\r\n\r\nIf this is a question about the Microsoft Graph service API, or a question about how to use this SDK, please post your question to StackOverflow with the [microsoftgraph] tag.\r\nhttps://stackoverflow.com/questions/tagged/microsoft-graph\r\n\r\nThis repo is for the Microsoft Graph Java SDK. Issues opened in this repo should only target this SDK.\r\n\r\nBefore you open this issue, did you:\r\n- Search the issues to determine whether someone already opened this issue?\r\n- Search StackOverflow for an answer?\r\n- Capture the repro steps and gather the information requested in the steps below to reproduce your scenario?\r\n- Review the samples under github.com/microsoftgraph? They can help for some scenarios.\r\n- Take a look at the functional tests in this repo? They may have an example for you. See the [functional tests](https://github.com/microsoftgraph/msgraph-sdk-java/tree/master/src/test/java/com/microsoft/graph/functional)\r\n\r\nPlease provide the following before submitting this issue:\r\n- Expected behavior. Please provide **links to the specific [Microsoft Graph documentation](https://developer.microsoft.com/en-us/graph/docs/concepts/overview)** you used to determine the expected behavior. \r\n- Actual behavior. Provide error codes, stack information, and a [Fiddler](http://www.telerik.com/fiddler) capture of the request and response (please remove personally identifiable information before posting).\r\n- Steps to reproduce the behavior. Include your code, IDE versions, client library versions, and any other information that might be helpful to understand your scenario.\r\n-->\r\n\r\nWith the [upgrade to gradle 6](https://github.com/microsoftgraph/msgraph-sdk-java/pull/435) all dependencies were set to scope `implementation`. This means, their are no longer transitively added with compile scope to consumer projects.\r\n\r\n### Expected behavior\r\nThe POM [microsoft-graph-2.2.0.pom](https://repo1.maven.org/maven2/com/microsoft/graph/microsoft-graph/2.2.0/microsoft-graph-2.2.0.pom) should have compile time dependencies to\r\n- gson\r\n- ~~guava~~ (update: not part of public api)\r\n- microsoft-graph-core\r\n- ~~okhttp~~ (update: is compile time dependency of microsoft-graph-core)\r\n\r\n### Actual behavior\r\nThe POM [microsoft-graph-2.2.0.pom](https://repo1.maven.org/maven2/com/microsoft/graph/microsoft-graph/2.2.0/microsoft-graph-2.2.0.pom) lists the dependencies from above with scope `runtime`.\r\n\r\n### Solution\r\nScope dependencies that are part of the API with scope `api` in `build.gradle`.\r\n\r\n### Background\r\nWith gradle 6 the old `compile` scope was deprecated and split into `implementation` and `api`: https://youtu.be/7ll-rkLCtyk?t=29m18s\r\n\r\nMore explanation can be found here: https://stackoverflow.com/questions/44493378/whats-the-difference-between-implementation-and-compile-in-gradle\r\n\r\n### Why is this a problem?\r\nConsumer Projects currently need to manage those dependencies by themselves. This makes upgrades to newer versions harder, because it is easy to introduces bugs by using wrong dependency versions.\r\n\r\n\r\n","author":{"url":"https://github.com/schuch","@type":"Person","name":"schuch"},"datePublished":"2020-09-23T11:53:32Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/494"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:68fb4f02-7fb1-ff9f-93f7-289c9c56d3fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFF0:265693:16DF77D:1E84BA8:6B0537F9 |
| html-safe-nonce | 59402cb97ec97c8cc85712ed0527528db7744278ea98597a4537b0c3270834fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkYwOjI2NTY5MzoxNkRGNzdEOjFFODRCQTg6NkIwNTM3RjkiLCJ2aXNpdG9yX2lkIjoiMzk1NzIzMDUyMTU0NDk0NzcwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3da225b14d9a3d474f844a03afb0f778e47bcebe66dc5d6d114d9938db9adedb |
| hovercard-subject-tag | issue:707294943 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java/494/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50a1ca607b8761858f5914b58f46d2e5402cd747cedc69fc823a2f6fefc1746b/microsoftgraph/msgraph-sdk-java/issues/494 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50a1ca607b8761858f5914b58f46d2e5402cd747cedc69fc823a2f6fefc1746b/microsoftgraph/msgraph-sdk-java/issues/494 |
| og:image:alt | With the upgrade to gradle 6 all dependencies were set to scope implementation. This means, their are no longer transitively added with compile scope to consumer projects. Expected behavior The POM... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | schuch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java git https://github.com/microsoftgraph/msgraph-sdk-java.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 103300409 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 103300409 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width