Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix all build.gradle files to use new deps declarations #1990

Closed
wants to merge 1 commit into from

Conversation

foghina
Copy link
Contributor

@foghina foghina commented Dec 13, 2017

Motivation (required)

We were getting a lot of deprecation warnings when building with gradle after the update to 4.1. This PR switches all provided to compileOnly and compile to implementation / api, depending on the use case.

Test Plan (required)

CI + run showcase app.

@@ -36,7 +37,7 @@ task jarTest (type: Jar) {
}

configurations {
testOutput.extendsFrom (testCompile)
testOutput.extendsFrom (testimplementation)
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't you want testImplementation?

testCompile("org.powermock:powermock-api-mockito:${POWERMOCK_VERSION}") {
implementation "com.parse.bolts:bolts-tasks:${BOLTS_ANDROID_VERSION}"
implementation project(':fbcore')
implementation 'com.facebook.soloader:soloader:0.1.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

can you also do the same versioning as we do for the others? Also, should this be in this diff?

@facebook-github-bot
Copy link
Contributor

@foghina has updated the pull request.

@foghina
Copy link
Contributor Author

foghina commented Dec 13, 2017

Whoops, some of the changes from #1989 butted their way in here. Removed them and fixed the testimplementation thing. Not sure how the build was passing with that though.

Copy link
Contributor

@oprisnik oprisnik left a comment

Choose a reason for hiding this comment

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

let's do this

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@oprisnik is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zjupure pushed a commit to zjupure/fresco that referenced this pull request Jan 1, 2018
Summary:
We were getting a lot of deprecation warnings when building with gradle after the update to 4.1. This PR switches all `provided` to `compileOnly` and `compile` to `implementation` / `api`, depending on the use case.

CI + run showcase app.
Closes facebook#1990

Reviewed By: oprisnik

Differential Revision: D6556102

Pulled By: foghina

fbshipit-source-id: 2b44efa74d379cc00192466a0ab31b2faeb9402a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants