Closed renanfranca closed 4 months ago
from:
.gradleConfigurations() .configuration() .and()
to:
.configurations() .newConfigurarion("") .addTasksTestInstruction("") .and()
At LocalProfileModuleFactory from:
.gradleConfigurations() .configuration( """ tasks.build { dependsOn("processResources") } tasks.processResources { filesMatching("**/*.yml") { filter { it.replace("@spring.profiles.active@", springProfilesActive) } } filesMatching("**/*.properties") { filter { it.replace("@spring.profiles.active@", springProfilesActive) } } } """ )
.gradleConfigurations() .newConfigurarion( """ tasks.build { dependsOn("processResources") } tasks.processResources { filesMatching("**/*.yml") { filter { it.replace("@spring.profiles.active@", springProfilesActive) } } filesMatching("**/*.properties") { filter { it.replace("@spring.profiles.active@", springProfilesActive) } } } """ )
At JacocoModuleFactory from:
.optionalReplacements() .in(path("build.gradle.kts")) .add(EXISTING_BUILD_GRADLE_TASK_TEST_NEEDLE, ADD_JACOCO_BUILD_GRADLE_TASK_TEST) .and() .and()
.configurations() .addTasksTestInstruction("""finalizedBy("jacocoTestReport")""") .and()
The goal of this issue is to make this possible. Implement the option to add new configurations at the end of tasks.test in the build.gradle.kts
tasks.test
build.gradle.kts
I suggest changing the existing GradleConfiguration API.
from:
to:
Here is how the changes will affect the existing code:
At LocalProfileModuleFactory from:
to:
At JacocoModuleFactory from:
to:
The goal of this issue is to make this possible. Implement the option to add new configurations at the end of
tasks.test
in thebuild.gradle.kts