Skip to content

changed compile into implemenation#737

Merged
osana merged 1 commit into
masterfrom
osana-dependencies-717
Mar 14, 2018
Merged

changed compile into implemenation#737
osana merged 1 commit into
masterfrom
osana-dependencies-717

Conversation

@osana

@osana osana commented Mar 5, 2018

Copy link
Copy Markdown
Contributor

closes #717

@osana
osana requested a review from cammace March 6, 2018 03:40
@osana osana added this to the v3.0.0 milestone Mar 6, 2018
@osana
osana force-pushed the osana-dependencies-717 branch from daf6609 to 3eaf98c Compare March 6, 2018 14:45
@tobrun

tobrun commented Mar 6, 2018

Copy link
Copy Markdown
Member

A little bit of context around this. With the newer gradle version the old compile was deprecated and replaced with:

  • implementation
  • api

The former doesn't expose dependencies to the consumer apps while the api does. For most cases we actually want to expose the dependencies and we should rely on api for that. For dependencies as support android versions we actually rather not expose them if not needed. More context in https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#new_configurations.

@cammace cammace mentioned this pull request Mar 12, 2018
@osana
osana force-pushed the osana-dependencies-717 branch 2 times, most recently from 62f9eed to 32dfe9a Compare March 14, 2018 00:17
Comment thread samples/build.gradle Outdated
implementation project(":services-matching")
implementation project(":services-staticmap")

implementation dependenciesList.retrofit

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed for the sample project, doesn't one of our service libraries carry retrofit over?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tobrun @cammace I ran into this this as well when I was doing initial changes and had to include implementation dependenciesList.retrofit but then eventually was able to build without it. I will give a try.

@osana
osana force-pushed the osana-dependencies-717 branch from 32dfe9a to 2d7b5c7 Compare March 14, 2018 14:20
@osana
osana merged commit 72a7734 into master Mar 14, 2018
@osana
osana deleted the osana-dependencies-717 branch April 17, 2018 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Leaking some unnecessary dependencies to the end users

4 participants