Plugin class: name.remal.gradle_plugins.plugins.testing.TestSourceSetsPlugin

plugins {
    id 'name.remal.test-source-sets' version '1.3.1'
plugins {
    id("name.remal.test-source-sets") version "1.3.1"


This plugin works only if java plugin is applied.

The plugin applies these plugins:


The plugin creates testSourceSets extension of type TestSourceSetContainer (it extends SourceSetContainer).

  • All test-source-sets created by testSourceSets container (or just added to it) are added to sourceSets container.
  • If a test-source-set is added to testSourceSets container, it's also added to sourceSets.
  • If a source-set is removed from sourceSets container, it's also removed from testSourceSets.
  • If a test-source-set is removed from testSourceSets container, it's also removed from sourceSets.

All configurations related to a test-source-set extend corresponding configuration of test source-set.

By default testSourceSets container contains test source-set.


The plugin creates a Test task for every test-source-set. Also it creates runAllTests task that depends on test task of every test-source-set.