Set Module SDK via Maven?
We have an IntelliJ project that contains 187 modules, all configured via Maven. This has worked for a number of years, but we are beginning a regular cadence of upgrading our JDK versions and a complication has arisen around specifying and persisting JDK versions on a per-module basis.
After a JDK release our modules upgrade on their own cadence. Without having some programmatic way to set and share this module-specific configuration between developers it makes the process of running multiple modules using different JDK versions on the same development machine a manual and potentially error prone process.
What I'm specifically looking for is a way to set the Module SDK version via some configuration within a module's Maven pom file. Doing so would ease JDK upgrade efforts as each module's SDK version could be committed in the Maven pom file and distributed to the rest of the development staff on their next update.
Below is the specific module configuration I'm looking to have persisted and imported in some sort of Maven configuration.

Please sign in to leave a comment.
Hello,
We have similar issue on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-164254