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

[Permissions-Lint] Migrate gradle file to Kotlin DSL #1631

Merged
merged 2 commits into from Oct 10, 2023

Conversation

oas004
Copy link
Contributor

@oas004 oas004 commented May 18, 2023

Following up #1578 and relating to #1579

Migrating the :permissions-lint module to Kotlin DSL.

I have split up the PR into two commits. The first one prepares the file to be migrated by using steps described in these docs. The second one is where I actually convert the file to .kts file and updates the rest of the file to be compatible with Kotlin DSL.

* not currently support dependencies, so instead we need to bundle any dependencies with the
* lint jar manually. (b/182319899)
*/
val bundleInside: Configuration = configurations.create("bundleInside")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had to rename this for the dependency function to work

// The stdlib is already bundled with lint, so no need to include it manually
// in the lint.jar if any dependencies here depend on it
.filter { !it.name.contains("kotlin-stdlib") }
.map { file ->
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I this this should do the same as the collect function did in groovy here 🤔

@oas004 oas004 marked this pull request as draft May 18, 2023 16:23
@oas004

This comment was marked as outdated.

@oas004 oas004 force-pushed the feature/permission-lint-kts branch 2 times, most recently from 6a4550d to 7b061de Compare May 31, 2023 21:05
@oas004 oas004 marked this pull request as ready for review June 4, 2023 19:57
@oas004
Copy link
Contributor Author

oas004 commented Sep 28, 2023

Rebased this with main now, sorry for not attending this PR, but now that Manuel is leaving google (https://twitter.com/manuelvicnt/status/1706651911569420512?t=pkAyynIoguUSvnmjkPlgNg&s=19) is it possible that someone else might give this a review? :)

@bentrengrove bentrengrove merged commit 886372a into google:main Oct 10, 2023
9 checks passed
@oas004 oas004 deleted the feature/permission-lint-kts branch October 11, 2023 00:10
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.

None yet

2 participants