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

Prepare Groovy scripts for Kotlin DSL migration #23355

Closed
wants to merge 2 commits into from

Conversation

dulmandakh
Copy link
Contributor

@dulmandakh dulmandakh commented Feb 9, 2019

Summary

Using Kotlin DSL in Gradle instead of Groovy will help detect problems early on using static typing, and it has advanced IDE support. This PR prepares Groovy script for Kotlin DSL migration per Migrating build logic from Groovy to Kotlin guide. Here is the excerpt:

As a first migration step, it is recommended to prepare your Groovy build scripts by

  • unifying quotes using double quotes,
  • disambiguating function invocations and property assignments (using respectively parentheses and assignment operator).

See: https://guides.gradle.org/migrating-build-logic-from-groovy-to-kotlin/

Changelog

[Android] [Changed] - Prepare Gradle scripts for Kotlin DSL migration

Test Plan

CI is green

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Contributor A React Native contributor. Partner labels Feb 9, 2019
@pull-bot
Copy link

pull-bot commented Feb 9, 2019

Messages
📖

📋 Changelog Format - Did you include a Changelog? A changelog entry has the following format: [CATEGORY] [TYPE] - Message.

Generated by 🚫 dangerJS against c7052c3

@dulmandakh dulmandakh changed the title prepare Groovy scripts for Kotlin migration [WIP] prepare Groovy scripts for Kotlin DSL migration Feb 9, 2019
@dulmandakh dulmandakh changed the title [WIP] prepare Groovy scripts for Kotlin DSL migration prepare Groovy scripts for Kotlin DSL migration Feb 9, 2019
@dulmandakh dulmandakh changed the title prepare Groovy scripts for Kotlin DSL migration Prepare Groovy scripts for Kotlin DSL migration Feb 9, 2019
@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Feb 9, 2019
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.

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

@react-native-bot
Copy link
Collaborator

@dulmandakh merged commit 8ccc55f into facebook:master.

@facebook facebook locked as resolved and limited conversation to collaborators Feb 9, 2019
@react-native-bot react-native-bot added the Merged This PR has been merged. label Feb 9, 2019
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 14, 2019
@dulmandakh dulmandakh deleted the gradle-strict branch February 22, 2019 14:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Contributor A React Native contributor. Merged This PR has been merged. Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants