Gradle Single vs Double Quotes

前端 未结 4 956
忘掉有多难
忘掉有多难 2020-12-03 06:28

I\'m new to gradle and am currently just trying to follow the tutorials and quite a few times I\'ve seen single and double quotes intermixed. I just wanted to know if there

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-03 07:11

    According to the gradle docs:

    Favor single quotes for plain strings in build script listings

    This is mostly to ensure consistency across guides, but single quotes are also a little less noisy than double quotes. Only use double quotes if you want to include an embedded expression in the string.

提交回复
热议问题