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

Use reflection for KotlinCompile.source() invocations #2273

Merged
merged 1 commit into from
May 25, 2022

Conversation

ZacSweers
Copy link
Contributor

This allows it to safely support Kotlin 1.7.x, where the signature of this function changed the return type. Resolves #2271

This allows it to safely support Kotlin 1.7.x, where the signature of this function changed the return type. Resolves square#2271
(it as JavaCompile).source(generatedSourcesDirectories)
}
project.tasks
.withType(JavaCompile::class.java)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Opportunistically added these to save the cast below. You may even be able to nix the name matching entirely but I wasn't sure how precise those were intended to be

Copy link

@gavra0 gavra0 left a comment

Choose a reason for hiding this comment

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

LGTM

@oldergod
Copy link
Member

Thank you!

@oldergod oldergod merged commit d2499c3 into square:master May 25, 2022
@ZacSweers ZacSweers deleted the z/kotlin17Support branch May 25, 2022 14: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.

Gradle plugin is incompatible with Kotlin 1.7.0-Beta
3 participants