I'm trying to create a new project type, based on the simple Java Module type. When this project is created, 2 modules will be created. The first is completely automatic, and takes only a version number as input from the user during creation. It contains a downloaded source package, as specified by the provided version number. The second is created as a standard Java module would be (empty) except for a single template class. A run configuration is also created for the second module. Exactly one of the first type of module should always exist in the project, but multiple modules of the second type may be added, each one generating their own run configuration.
Can anyone give me any hints as to how I might begin to code this?