Skip to content

Add gradle wrapper to new project template. - #9882

Closed
jakobr-google wants to merge 1 commit into
flutter:masterfrom
jakobr-google:wrapit
Closed

jakobr-google wants to merge 1 commit into
flutter:masterfrom
jakobr-google:wrapit

Conversation

@jakobr-google

Copy link
Copy Markdown
Contributor

Android Studio is heavily pushing the Gradle wrapper when you open our projects in Studio. It's also pushing an upgrade to the gradle plugin, which requires Gradle 3.3. However, Studio ships with Gradle 3.2, so if you choose to upgrade, the project will not build.

Using the gradle wrapper makes Studio happier, so let's update our new project template to use it.

We could also update our build.gradle to require v2.3.1 of the Android Gradle plugin, so Studio won't prompt to upgrade the dependency for us, but I've left that for another change.

Fixes #9842.

@jakobr-google
jakobr-google requested a review from mit-mit May 8, 2017 14:35

@abarth abarth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please do not check in binary files, such as gradle-wrapper.jar.

I'm also skeptical about the gradlew shell script. For example, what happens when that file changes?

@mit-mit

mit-mit commented May 8, 2017

Copy link
Copy Markdown
Member

I'll share some context on this change in a few hours

@Hixie

Hixie commented May 8, 2017

Copy link
Copy Markdown
Contributor

Before we add more files to the template, I think we should make sure the template contains a README that documents, for each file in the template:

  • What the file is for
  • Why you would edit that file
  • How to verify that the edits are valid
  • How to test the file

The template is growing really big and it's not at all clear why some of these files are part of the user code and not just part of the framework.

@mit-mit

mit-mit commented May 10, 2017

Copy link
Copy Markdown
Member

Some additional notes are available in go/gradlenotes

@iNoles

iNoles commented May 10, 2017

Copy link
Copy Markdown
Contributor

You could do gradle wrapper to generate gradle wrapper. It supposed to take gradle version from the wrapper function in a build.gradle.

@Hixie

Hixie commented May 24, 2017

Copy link
Copy Markdown
Contributor

This is being tracked in #10236.

Should we close this PR for now, since it seems this is not going to land as-is?

@mit-mit

mit-mit commented May 24, 2017

Copy link
Copy Markdown
Member

We can close this PR, yes, but lets track the work in the existing bug #9842, please

@mit-mit mit-mit closed this May 24, 2017
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android Studio updated gradle version of my project and now flutter run fails

6 participants