kordamp-gradle-plugins icon indicating copy to clipboard operation
kordamp-gradle-plugins copied to clipboard

Allow configuring sourceSet name for IntegrationTest plugin

Open dmurat opened this issue 5 years ago • 3 comments

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.

dmurat avatar Jun 19 '20 14:06 dmurat

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.

aalmiray avatar Jun 21 '20 14:06 aalmiray

Maybe it is possible to use Gradle properties to achieve something like this?

dmurat avatar Jun 29 '20 12:06 dmurat

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.

aalmiray avatar Jun 29 '20 18:06 aalmiray