Skip to content

Commit

Permalink
use junit platform by default (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup committed Jul 18, 2019
1 parent fc75578 commit c758b72
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 41 deletions.
5 changes: 4 additions & 1 deletion api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

sourceCompatibility = targetCompatibility = 8

test {
useJUnit()
}

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand Down
4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
apply plugin: 'org.springframework.boot'

test {
useJUnit()
}

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand Down
16 changes: 10 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,17 @@ configure(subprojects.findAll { !it.name.startsWith("examples/") }) {
apply plugin: 'java'
apply from: "$rootDir/gradle/rerunTests.gradle"

sourceCompatibility = targetCompatibility = 10
sourceCompatibility = targetCompatibility = 11

test.testLogging {
displayGranularity 1
showStackTraces = true
exceptionFormat = 'full'
events "STARTED", "PASSED", "FAILED", "SKIPPED"
test {
useJUnitPlatform()

testLogging {
displayGranularity 1
showStackTraces = true
exceptionFormat = 'full'
events "STARTED", "PASSED", "FAILED", "SKIPPED"
}
}

project.afterEvaluate {
Expand Down
5 changes: 4 additions & 1 deletion client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

sourceCompatibility = targetCompatibility = 8

test {
useJUnit()
}

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand Down
5 changes: 4 additions & 1 deletion examples/plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ plugins {
id "io.spring.dependency-management"
}


sourceCompatibility = targetCompatibility = 8

test {
useJUnit()
}

jar {
baseName = "example-plugin"
manifest {
Expand Down
4 changes: 0 additions & 4 deletions plugins/dynamodb-positions-storage/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
test {
useJUnitPlatform()
}

jar {
manifest {
attributes(
Expand Down
4 changes: 0 additions & 4 deletions plugins/inmemory-positions-storage/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
test {
useJUnitPlatform()
}

jar {
manifest {
attributes(
Expand Down
4 changes: 0 additions & 4 deletions plugins/inmemory-records-storage/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
test {
useJUnitPlatform()
}

jar {
manifest {
attributes(
Expand Down
4 changes: 0 additions & 4 deletions plugins/kafka-records-storage/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
test {
useJUnitPlatform()
}

jar {
manifest {
attributes(
Expand Down
8 changes: 0 additions & 8 deletions plugins/pulsar-records-storage/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
plugins {
id "java"
}

test {
useJUnitPlatform()
}

jar {
manifest {
attributes(
Expand Down
4 changes: 0 additions & 4 deletions plugins/redis-positions-storage/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
test {
useJUnitPlatform()
}

jar {
manifest {
attributes(
Expand Down
4 changes: 0 additions & 4 deletions plugins/schema/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
test {
useJUnitPlatform()
}

jar {
manifest {
attributes(
Expand Down
4 changes: 4 additions & 0 deletions testing/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
test {
useJUnit()
}

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand Down

0 comments on commit c758b72

Please sign in to comment.