Skip to content

Commit

Permalink
Add test dependencies to samples
Browse files Browse the repository at this point in the history
Signed-off-by: Taeik Lim <[email protected]>
  • Loading branch information
acktsap committed Jul 28, 2024
1 parent 07523d1 commit ede0fdc
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,16 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
}
}

tasks.named<Test>("test") {
useJUnitPlatform()
maxParallelForks = Runtime.getRuntime().availableProcessors()
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-batch:3.2.0")
implementation(project(":spring-boot-starter-batch-plus-kotlin"))
implementation("io.projectreactor:reactor-core:3.5.0")
runtimeOnly("com.h2database:h2:2.1.214")

testImplementation("org.springframework.boot:spring-boot-starter-test:3.2.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ java {
}
}

tasks.named<Test>("test") {
useJUnitPlatform()
maxParallelForks = Runtime.getRuntime().availableProcessors()
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-batch:3.2.0")
implementation(project(":spring-boot-starter-batch-plus"))
runtimeOnly("com.h2database:h2:2.1.214")

testImplementation("org.springframework.boot:spring-boot-starter-test:3.2.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,16 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
}
}

tasks.named<Test>("test") {
useJUnitPlatform()
maxParallelForks = Runtime.getRuntime().availableProcessors()
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-batch:3.2.0")
implementation("org.springframework.boot:spring-boot-starter-web:3.2.0")
implementation(project(":spring-boot-starter-batch-plus-kotlin"))
runtimeOnly("com.h2database:h2:2.1.214")

testImplementation("org.springframework.boot:spring-boot-starter-test:3.2.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@ java {
}
}

tasks.named<Test>("test") {
useJUnitPlatform()
maxParallelForks = Runtime.getRuntime().availableProcessors()
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-batch:3.2.0")
implementation("org.springframework.boot:spring-boot-starter-web:3.2.0")
implementation(project(":spring-boot-starter-batch-plus"))
runtimeOnly("com.h2database:h2:2.1.214")

testImplementation("org.springframework.boot:spring-boot-starter-test:3.2.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
}
}

tasks.named<Test>("test") {
useJUnitPlatform()
maxParallelForks = Runtime.getRuntime().availableProcessors()
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-batch:3.2.0")
implementation(project(":spring-boot-starter-batch-plus-kotlin"))
runtimeOnly("com.h2database:h2:2.1.214")

testImplementation("org.springframework.boot:spring-boot-starter-test:3.2.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,16 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
}
}

tasks.named<Test>("test") {
useJUnitPlatform()
maxParallelForks = Runtime.getRuntime().availableProcessors()
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-batch:3.2.0")
implementation(project(":spring-boot-starter-batch-plus-kotlin"))
implementation("io.projectreactor:reactor-core:3.5.0")
runtimeOnly("com.h2database:h2:2.1.214")

testImplementation("org.springframework.boot:spring-boot-starter-test:3.2.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@ java {
}
}

tasks.named<Test>("test") {
useJUnitPlatform()
maxParallelForks = Runtime.getRuntime().availableProcessors()
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-batch:3.2.0")
implementation(project(":spring-boot-starter-batch-plus"))
implementation("io.projectreactor:reactor-core:3.5.0")
runtimeOnly("com.h2database:h2:2.1.214")

testImplementation("org.springframework.boot:spring-boot-starter-test:3.2.0")
}

0 comments on commit ede0fdc

Please sign in to comment.