Hi, does someone know how can I set a gradle prope...
# community-support
b
Hi, does someone know how can I set a gradle property using the ProjectBuilder API? I have a grade plugin and I want to test what happend when I have ksp2 active or not using
ksp.useKSP2
. (Yes, I'm also testing against an old version of ksp because reasons)
I don't know why
ProjectBuilder.builder().build().setProperty("ksp.useKSP2", "true")
crashes with:
Could not set unknown property 'ksp.useKSP2' for root project 'test-project' of type org.gradle.api.Project.
a
it's not possible to set Gradle properties with ProjectBuilder https://github.com/gradle/gradle/issues/17638
b
Thanks for the issue link. And I'll try with the extension 🙂 I didn't see that but I was looking at the documentation of the old version of ksp that I'm using right now.
Your workaround worked like a charm. 🙂 I have my tests working now. Thanks!