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

Replace usages of findProperty #2034

Merged
merged 2 commits into from
Aug 21, 2024
Merged

Conversation

ansman
Copy link
Contributor

@ansman ansman commented Aug 18, 2024

findProperty is not compatible with project isolation. The new providers.gradleProperty is however.

This partially fixes #1752

`findProperty` is not compatible with project isolation. The new
`providers.gradleProperty` is however.

This partially fixes google#1752
@ting-yuan ting-yuan merged commit f85a75d into google:main Aug 21, 2024
3 checks passed
@ZacSweers
Copy link
Contributor

I'd like to request that this be either reverted or expose another way to enable/disable KSP2 per-project or per-task. With this change, it can only be enabled/disabled globally because ProviderFactory.gradleProperty() only reads the root project's gradle properties.

ansman added a commit to ansman/ksp that referenced this pull request Sep 6, 2024
With the change in google#2034 a side effect was that KSP2 had to be enabled
per Gradle project, not per module.

With this change a DSL property has been added to handle this.
@ansman ansman deleted the fix/project-isolation branch September 6, 2024 20:32
@ansman
Copy link
Contributor Author

ansman commented Sep 6, 2024

@ZacSweers Fix in #2089

ansman added a commit to ansman/ksp that referenced this pull request Sep 6, 2024
With the change in google#2034 a side effect was that KSP2 had to be enabled
per Gradle project, not per module.

With this change a DSL property has been added to handle this.
ansman added a commit to ansman/ksp that referenced this pull request Sep 26, 2024
With the change in google#2034 a side effect was that KSP2 had to be enabled
per Gradle project, not per module.

With this change a DSL property has been added to handle this.
ansman added a commit to ansman/ksp that referenced this pull request Sep 26, 2024
With the change in google#2034 a side effect was that KSP2 had to be enabled
per Gradle project, not per module.

With this change a DSL property has been added to handle this.
ting-yuan pushed a commit that referenced this pull request Sep 27, 2024
With the change in #2034 a side effect was that KSP2 had to be enabled
per Gradle project, not per module.

With this change a DSL property has been added to handle this.
github-actions bot pushed a commit that referenced this pull request Sep 27, 2024
With the change in #2034 a side effect was that KSP2 had to be enabled
per Gradle project, not per module.

With this change a DSL property has been added to handle this.

(cherry picked from commit 78e999b)
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: Support isolated projects
3 participants