How to add targets to JvmTestSuite

I’m trying to add more targets to JvmTestSuite , my understanding was that a suite can have many targets , where each target is a Test task configured differently.
we want to have multiple Test tasks executing with the same source set but possibly different configuration and maybe different dependencies.
it works with gradle 7.3.3, but with 7.4 is get an error:

Could not configure suite: ‘integrationTest’. Another test suite: ‘integrationTest’ uses the type: ‘integration-test’ and has already been configured in project: ‘runtime-agent-test’.

i want to do something like that but i can’t understand how to do it. i tried adding different testType to each suite but didn’t help.

testing {
    suites {
        test {
            useJUnitJupiter(testinglibs.versions.junit.jupiter.get())
            dependencies {
                implementation project(':test-utils')
            }
            sources {
                java {
                    srcDirs = ['src/test/java']
                }
                resources {
                    //sharing the same log4j configuration for all test suites
                    srcDirs += [project.rootProject.file('shared/log4j-test')]
                }
            }
            targets {
                all {
                    testTask.configure {
                        systemProperty 'MyProp','default-value'
                        forkEvery = 1
                    }
                }
                test{
                    testTask.configure {
                        systemProperty 'MyProp','test value'
                    }
                }
                secondaryTest{
                    testTask.configure {
                        systemProperty 'MyProp','secondaryTest value'
                    }
                }
            }
        }
        integrationTest(JvmTestSuite) {
            useJUnitJupiter(testinglibs.versions.junit.jupiter.get())
            dependencies {
                implementation project(':test-utils')
            }
            sources {
                java {
                    srcDirs = ['src/it/java']
                }
                resources {
                    //sharing the same log4j configuration for all test suites
                    srcDirs += [project.rootProject.file('shared/log4j-test')]
                }
            }
            targets {
                all {
                    testTask.configure {
                        systemProperty 'MyProp','default-value'
                        forkEvery = 1
                    }
                }
                integrationTest{
                    testTask.configure {
                        systemProperty 'MyProp','integrationTest value'
                    }
                }
                secondaryIntegrationTest{
                    testTask.configure {
                        systemProperty 'MyProp','secondaryIntegrationTest value'
                    }
                }
            }
        }
    }
}

If you have a look at the docs, it seems to unfortunately not yet be possible.
I also hope this gets added soon: The JVM Test Suite Plugin

Test Suite Target

For the initial release of this plugin, each test suite has a single target. This results in a 1:1:1 relationship between test suite, test suite target and a matching Test task. The name of the Test task is derived from the suite name. Future iterations of the plugin will allow defining multiple targets based other attributes, such as a particular JDK/JRE runtime.

Yes i did read the docs but it was not clear to me that its not possible to add more targets, just that there is a default target and in the future there will be more capabilities to add targets. in fact in gradle 7.3.3 it was possible. the rule of

type must be unique across all test suites in the same Gradle project

was added in 7.4, and its actually “the type is unique across all targets in the same project”, so only one target per testType in a project.

I thought the intention of the plugin was multiple targets in a suite assigned the same testType , with the option to configure all or individual targets , including the aggregation with jacoco-report-aggregation plugin of each suite into one report.

we have two source sets in the project. what we wanted to do is to execute the same sourceset with different jvms and system property and then aggregate the jacoco report per suite.
something like that which unfortunately is not possible now. and i wonder if that would be possible in the future with JvmTestSuite.

testing {
    suites {
        integrationTest {
            sources {
                java {
                    srcDirs = ['src/integrationTest/java']
                }
            }
            targets {
                all {
                    testTask.configure {
                        systemProperty 'MyProp','default-value'
                        forkEvery = 1
                    }
                }
                test{
                    testTask.configure {
                        systemProperty 'MyProp','test value'
                        javaLauncher.set(javaToolchains.launcherFor {
                            languageVersion = JavaLanguageVersion.of(7)
                        })

                    }
                }
                secondaryTest{
                    testTask.configure {
                        systemProperty 'MyProp','secondaryTest value'
                        javaLauncher.set(javaToolchains.launcherFor {
                            languageVersion = JavaLanguageVersion.of(8)
                        })
                    }
                }
            }
        }
        integrationTestOEM(JvmTestSuite) {
            sources {
                java {
                    srcDirs = ['src/integrationTestOem/java']
                }
            }
            targets {
                all {
                    testTask.configure {
                        systemProperty 'MyProp','default-value'
                        forkEvery = 1
                    }
                }
                integrationTestOEM{
                    testTask.configure {
                        systemProperty 'MyProp','integrationTest value'
                        javaLauncher.set(javaToolchains.launcherFor {
                            languageVersion = JavaLanguageVersion.of(7)
                        })
                    }
                }
                secondaryIntegrationTestOEM{
                    testTask.configure {
                        systemProperty 'MyProp','secondaryIntegrationTest value'
                        javaLauncher.set(javaToolchains.launcherFor {
                            languageVersion = JavaLanguageVersion.of(8)
                        })
                    }
                }
            }
        }
    }
}