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 Aug 19, 2024
1 parent 07523d1 commit 8a37f0e
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ buildscript {
plugins {
id("org.jetbrains.kotlin.jvm")
id("org.jlleitschuh.gradle.ktlint")
id("io.spring.dependency-management") version "1.1.6"
}

repositories {
Expand All @@ -25,9 +26,22 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
}
}

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

dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:3.2.0")
}
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-batch:3.2.0")
implementation("org.springframework.boot:spring-boot-starter-batch")
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")
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ buildscript {

plugins {
java
id("io.spring.dependency-management") version "1.1.6"
}

repositories {
Expand All @@ -19,8 +20,21 @@ java {
}
}

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

dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:3.2.0")
}
}

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

testImplementation("org.springframework.boot:spring-boot-starter-test")
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ buildscript {
plugins {
id("org.jetbrains.kotlin.jvm")
id("org.jlleitschuh.gradle.ktlint")
id("io.spring.dependency-management") version "1.1.6"
}

repositories {
Expand All @@ -25,9 +26,22 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
}
}

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

dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:3.2.0")
}
}

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

testImplementation("org.springframework.boot:spring-boot-starter-test")
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ buildscript {

plugins {
java
id("io.spring.dependency-management") version "1.1.6"
}

repositories {
Expand All @@ -19,9 +20,22 @@ java {
}
}

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

dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:3.2.0")
}
}

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

testImplementation("org.springframework.boot:spring-boot-starter-test")
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ buildscript {
plugins {
id("org.jetbrains.kotlin.jvm")
id("org.jlleitschuh.gradle.ktlint")
id("io.spring.dependency-management") version "1.1.6"
}

repositories {
Expand All @@ -25,8 +26,21 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
}
}

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

dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:3.2.0")
}
}

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

testImplementation("org.springframework.boot:spring-boot-starter-test")
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ buildscript {
plugins {
id("org.jetbrains.kotlin.jvm")
id("org.jlleitschuh.gradle.ktlint")
id("io.spring.dependency-management") version "1.1.6"
}

repositories {
Expand All @@ -25,9 +26,22 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
}
}

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

dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:3.2.0")
}
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-batch:3.2.0")
implementation("org.springframework.boot:spring-boot-starter-batch")
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")
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ buildscript {

plugins {
java
id("io.spring.dependency-management") version "1.1.6"
}

repositories {
Expand All @@ -19,9 +20,22 @@ java {
}
}

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

dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:3.2.0")
}
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-batch:3.2.0")
implementation("org.springframework.boot:spring-boot-starter-batch")
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")
}

0 comments on commit 8a37f0e

Please sign in to comment.