Skip to content

Commit

Permalink
fix(deps): Add junit-platform-launcher if not exists (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
juancgalvis authored Oct 18, 2024
1 parent c6491aa commit 690a122
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ public boolean up(ModuleBuilder builder) {
partial =
UpdateUtils.insertAfterMatch(partial, "dependsOn test", "'pitest'", ", 'pitest'");

partial =
UpdateUtils.insertAfterMatch(
partial,
"dependencies {",
"junit-platform-launcher",
"\n testRuntimeOnly 'org.junit.platform:junit-platform-launcher'");

return UpdateUtils.insertBeforeMatch(
partial,
"tasks.named('wrapper')",
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/pitest/main-after.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ subprojects {
sourceCompatibility = JavaVersion.VERSION_17

dependencies {
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
implementation 'io.projectreactor:reactor-core'
implementation 'io.projectreactor.addons:reactor-extra'
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor.tools:blockhound-junit-platform:1.0.10.RELEASE'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'

compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
Expand Down
1 change: 0 additions & 1 deletion src/test/resources/pitest/main-before.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ subprojects {
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor.tools:blockhound-junit-platform:1.0.10.RELEASE'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'

compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
Expand Down

0 comments on commit 690a122

Please sign in to comment.