How to apply the plugin to a multi-project build?
jk1 opened this issue · 6 comments
I don't like Idea detecting web facet from the build, so I'm trying to get rid of it with the plugin.
Here's the trivial build I'm doing my tests on: https://github.com/jk1/idea-ext-plugin-test
- I have tried to apply the plugin to the root project
- In idea removed web facet and artifacts
- Run gradle sync from Idea
- Facet and artifacts reappeared
Also tried to apply the plugin to the web subproject directly. Upon gradle project refresh it just fails with an exception.
So, what's the proper way of going it?
- you can apply plugin to the root project and provide configuration in any subprojects you need
- plugin does not disable Idea's built-in web resources detection. Would you mind opening an issue in Idea tracker, that describes what's wrong with the Idea's detection of web facet?
Thanks for looking into it.
plugin does not disable Idea's built-in web resources detection
Just curios, what doNotDetectFrameworks("web")
does then?
Would you mind opening an issue in Idea tracker, that describes what's wrong with the Idea's detection of web facet?
None of the issues I reported to Idea before has been replied or updated in any way. So I'm not sure if it makes any sense.
Update: I have even reported this particular problem before: https://youtrack.jetbrains.com/issue/IDEA-140667
Just curios, what doNotDetectFrameworks("web") does then?
It is the DSL equivalent of "exclude facet from auto detection" https://www.jetbrains.com/help/idea/2018.3/creating-and-managing-modules.html#add-support-for-frameworks-technologies
This should work for me. With web facet excluded from autodetection there should be neither "web" facet, nor artifacts. Apparently it doesn't work in the test project; facet still appears.
I see, thanks. I appreciate you looking into this.