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

Convert gradle build scripts to kts #1449

Merged
merged 27 commits into from
May 18, 2022
Merged

Conversation

Goooler
Copy link
Contributor

@Goooler Goooler commented Apr 8, 2022

Description

Follow up #1428, convert Gradle build scripts to KTS to be type-safe.

https://docs.gradle.org/current/userguide/kotlin_dsl.html

Checklist

  • PR description added
  • tests are added
  • CHANGELOG.md is updated

In case of adding a new rule:

  • README.md is updated
  • Rule has been applied on Ktlint itself and violations are fixed

@Goooler Goooler changed the title Convert gradle build script to kts Convert gradle build scripts to kts Apr 8, 2022
.configureEach {
kotlinOptions {
apiVersion = "1.4"
apiVersion = "1.6"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

w: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't completely know the consequences of us increasing this apiVersion. Will some plugins etc become incompatible? @Tapchicoma ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@Goooler In commit you have removed the apiVersion entirely. What is the reasoning behind this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As the apiVersion is sync with Kotlin version by default.

@paul-dingemans
Copy link
Collaborator

Ok, lets give this change a go and hope for the best. 🤞

@paul-dingemans paul-dingemans merged commit cdc39b1 into pinterest:master May 18, 2022
@paul-dingemans
Copy link
Collaborator

@Goooler Tnx for your patience on this issue. Your contributions are welcome. Unfortunately, review and merging sometimes take a bit longer as I have little knowledge about these kind of changes.

@paul-dingemans paul-dingemans added this to the 0.46.0 milestone May 18, 2022
@Goooler Goooler deleted the kts branch May 19, 2022 01:41
@Goooler Goooler mentioned this pull request Sep 30, 2022
6 tasks
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.

3 participants