JetBrains / gradle-idea-ext-plugin

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

Make SDK configurable (e.g. Python SDK) #134

Open jschneider opened 6 months ago

jschneider commented 6 months ago

Describe the need of your request

I have a monorepo with some python projects that are integrated into the gradle build.

I also want to configure IntelliJ IDEA to handle syntax highlighting for the python modules

Proposed solution

Make the SDK configurable for the module:

idea { module { //Does not work at the moment :-( //sdkName = "Python 3.11" } }

Alternatives you've considered

No response

Additional context

I am using com.pswidersk.python-plugin which seems to work nice (with gradle). I am adding src/main/python to the source directory which also works fine with IntellIJ IDEA

PrzemyslawSwiderski commented 2 months ago

Hi @jschneider, while it still would be cool if gradle-idea-ext-plugin could support setting the SDK I also created SDK-Import Intellij Plugin so that it can automatically import Python SDK installed by com.pswidersk.python-plugin Gradle plugin.