I have a gradle extension with a property: ```//bu...
# intellij-plugins
c
I have a gradle extension with a property:
Copy code
//build.gradle.kts
myExtension {
    myProperty.set(true)
}
Now i want to provide some IDE functionality in my IDEA plugin based on this property. I there a way to read such a gradle configuration from within an IDE plugin?
I mean i could create a gradle task which outputs the value and trigger/read that from within the IDE plugin, but this seems rather hacky to me
h
Yes, with the gradle tooling api and a custom Model
If you don’t own the plugin which adds the extension, you could add an extraction plugin and apply it via init script provided by IntelliJ
c
Thx a lot! Will try the tooling api as i own both.