JetBrains / gradle-idea-ext-plugin

Plugin to store IJ settings in gradle script
Apache License 2.0
230 stars 45 forks source link

Support defining SDKs #25

Open mkobit opened 6 years ago

mkobit commented 6 years ago

What we have internally now is a Gradle plugin that uses Miniconda to generate Python environments in a multi-project Gradle build. Right now, we:

  1. Run the Gradle tasksto generate the environment
  2. Add an SDK pointing to that environment
  3. Add the Python facet to the correct module from the previous project import

It would be awesome if we could use this plugin to apply those changes programmatically on import/refresh/any changes to any of the Gradle projects.

mkobit commented 6 years ago

I see some notion of facets in the code, but don't see a clear example in the wiki or how I might deal with the SDK side of things.

nskvortsov commented 6 years ago

facets DSL container is already there, and can be extended. So is corresponding Intellij extension point (not documented yet). Let's keep definition of SDKs in this ticket.

nskvortsov commented 5 years ago

Interesting plugin for intellij https://github.com/JetBrains/embeddedProjectJdk