Polishing

This commit is contained in:
Sebastien Deleuze
2019-02-18 13:33:41 +01:00
parent d2730f6fc4
commit 40cb35ba46
2 changed files with 17 additions and 17 deletions

View File

@@ -377,11 +377,11 @@ Then exclude `junit` from `spring-boot-starter-test` transitive dependencies and
[source,groovy]
----
dependencies {
testCompile('org.springframework.boot:spring-boot-starter-test') {
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude module: 'junit'
}
testImplementation('org.junit.jupiter:junit-jupiter-api')
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine')
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
----
@@ -857,11 +857,11 @@ With Gradle:
[source,groovy]
----
testCompile('org.springframework.boot:spring-boot-starter-test') {
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude module: 'junit'
exclude module: 'mockito-core'
}
testImplementation('com.ninja-squad:springmockk:1.1.0')
testImplementation 'com.ninja-squad:springmockk:1.1.0'
----
Or with Maven:

View File

@@ -51,19 +51,19 @@ test {
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-mustache')
compile('com.fasterxml.jackson.module:jackson-module-kotlin')
compile('org.jetbrains.kotlin:kotlin-stdlib-jdk8')
compile('org.jetbrains.kotlin:kotlin-reflect')
runtime('com.h2database:h2')
kapt('org.springframework.boot:spring-boot-configuration-processor')
testCompile('org.springframework.boot:spring-boot-starter-test') {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-mustache'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
runtime 'com.h2database:h2'
kapt 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude module: 'junit'
exclude module: 'mockito-core'
}
testImplementation('org.junit.jupiter:junit-jupiter-api')
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine')
testImplementation('com.ninja-squad:springmockk:1.1.0')
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'com.ninja-squad:springmockk:1.1.0'
}