Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document setting the module type #120

Open
baron1405 opened this issue Feb 4, 2021 · 1 comment
Open

Document setting the module type #120

baron1405 opened this issue Feb 4, 2021 · 1 comment

Comments

@baron1405
Copy link

baron1405 commented Feb 4, 2021

Issue #21 has been implemented and closed but looking at the Wiki for the project, I do not see any mention of how to set the module type. Please update the documentation.

In the meantime, can you reply to this issue with examples of how to set the module type. I am looking in the source code but it appears you need to specify a source set. I was hoping to just use the plugin in a subproject build.gradle and say something like:

idea {
    module {
        type = 'PYTHON_MODULE'
    }
}
@baron1405
Copy link
Author

For anyone else coming across this issue, you can set the module type for a subproject using the following DSL syntax:

idea {
    module {
        settings {
            rootModuleType = '<module type>'
        }
    }
}

For example, to specify a Python module:

idea {
    module {
        settings {
            rootModuleType = 'PYTHON_MODULE'
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant