kordamp-gradle-plugins
kordamp-gradle-plugins copied to clipboard
Allow configuring sourceSet name for IntegrationTest plugin
For the IntegrationTest plugin, I will really like to have the ability to configure a "base name" used for naming configurations, source sets, and tasks. Currently, it is integrationTest. I will like to call it testIntegration instead. The main reason are some conventions currently in place in my organization. Another one is visual sorting in IDE (IDEA in my case), where all test* source sets are grouped together.
I guess the same can be applied to the FunctionalTest plugin too, and Testing (reporting) plugin probably also needs to be adjusted.
Is this possible/feasible? Tnx.
This will be a tricky one as there are plugins outside Kordamp's control that apply rules based on sourceSet names. These rules kick in at different times while Kordamp can only react once a project has been evaluated. This means some plugins may "break" if a source set is not available at the time they need it.
Maybe it is possible to use Gradle properties to achieve something like this?
It is possible but changes the dynamics of a general purpose plugin set as Kordamp, given that a setting like this has to be evaluated eagerly while the rest will be done lazily.