Open
Description
While working on code and build convention integration tests, I've noticed that the outcome of the test is not deterministic as the following two snippets are generated in reverse order depending of the bean processing order:
tasks.withType(KotlinCompile) {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
and
test {
useJUnitPlatform()
}
There's no obvious way to order those tasks but we could order the customizers that mutate the build.