From 1a7d3ebe448ab99cc5b7db9828177dbccc28794d Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 5 Feb 2022 12:04:49 +0100 Subject: [PATCH] centralise junit dependency --- build.gradle | 6 +++++- eventmesh-common/build.gradle | 1 - .../eventmesh-connector-standalone/build.gradle | 1 - .../eventmesh-protocol-api/build.gradle | 1 - .../eventmesh-protocol-cloudevents/build.gradle | 2 -- .../eventmesh-protocol-meshmessage/build.gradle | 1 - .../eventmesh-protocol-openmessage/build.gradle | 1 - eventmesh-sdk-java/build.gradle | 1 - eventmesh-spi/build.gradle | 1 - 9 files changed, 5 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index bada0c5bb4..9bdf9d3855 100644 --- a/build.gradle +++ b/build.gradle @@ -75,6 +75,10 @@ allprojects { maxWarnings = 0 configFile = new File("${rootDir}/style/checkStyle.xml") } + + dependencies { + testImplementation "junit:junit" + } } task tar(type: Tar) { @@ -449,7 +453,7 @@ subprojects { dependency "org.springframework.boot:spring-boot-starter-web:2.1.6.RELEASE" dependency "io.openmessaging:registry-server:0.0.1" - dependency "junit:junit:4.12" + dependency "junit:junit:4.13.2" dependency "com.github.stefanbirkner:system-rules:1.16.1" dependency "org.assertj:assertj-core:2.6.0" diff --git a/eventmesh-common/build.gradle b/eventmesh-common/build.gradle index 59859b5dd3..67b08aad7d 100644 --- a/eventmesh-common/build.gradle +++ b/eventmesh-common/build.gradle @@ -64,7 +64,6 @@ dependencies { testImplementation "io.netty:netty-all" - testImplementation "junit:junit" testImplementation "org.assertj:assertj-core" testImplementation "org.mockito:mockito-core" diff --git a/eventmesh-connector-plugin/eventmesh-connector-standalone/build.gradle b/eventmesh-connector-plugin/eventmesh-connector-standalone/build.gradle index b71e47f64c..c178f455a1 100644 --- a/eventmesh-connector-plugin/eventmesh-connector-standalone/build.gradle +++ b/eventmesh-connector-plugin/eventmesh-connector-standalone/build.gradle @@ -18,5 +18,4 @@ dependencies { implementation project(":eventmesh-common") implementation project(":eventmesh-connector-plugin:eventmesh-connector-api") - testImplementation "junit:junit" } \ No newline at end of file diff --git a/eventmesh-protocol-plugin/eventmesh-protocol-api/build.gradle b/eventmesh-protocol-plugin/eventmesh-protocol-api/build.gradle index feb34b0d2f..ab24959cf9 100644 --- a/eventmesh-protocol-plugin/eventmesh-protocol-api/build.gradle +++ b/eventmesh-protocol-plugin/eventmesh-protocol-api/build.gradle @@ -25,7 +25,6 @@ dependencies { testImplementation project(":eventmesh-common") testImplementation "io.cloudevents:cloudevents-core" - testImplementation "junit:junit" compileOnly 'org.projectlombok:lombok:1.18.22' annotationProcessor 'org.projectlombok:lombok:1.18.22' diff --git a/eventmesh-protocol-plugin/eventmesh-protocol-cloudevents/build.gradle b/eventmesh-protocol-plugin/eventmesh-protocol-cloudevents/build.gradle index 7f77c3db21..8a6a2389ec 100644 --- a/eventmesh-protocol-plugin/eventmesh-protocol-cloudevents/build.gradle +++ b/eventmesh-protocol-plugin/eventmesh-protocol-cloudevents/build.gradle @@ -20,6 +20,4 @@ dependencies { implementation "io.cloudevents:cloudevents-core" implementation "com.google.guava:guava" implementation "io.cloudevents:cloudevents-json-jackson" - - testImplementation "junit:junit" } diff --git a/eventmesh-protocol-plugin/eventmesh-protocol-meshmessage/build.gradle b/eventmesh-protocol-plugin/eventmesh-protocol-meshmessage/build.gradle index 2b0455c35b..f790fbe968 100644 --- a/eventmesh-protocol-plugin/eventmesh-protocol-meshmessage/build.gradle +++ b/eventmesh-protocol-plugin/eventmesh-protocol-meshmessage/build.gradle @@ -21,5 +21,4 @@ dependencies { testImplementation project(":eventmesh-protocol-plugin:eventmesh-protocol-api") testImplementation "io.cloudevents:cloudevents-core" - testImplementation "junit:junit" } diff --git a/eventmesh-protocol-plugin/eventmesh-protocol-openmessage/build.gradle b/eventmesh-protocol-plugin/eventmesh-protocol-openmessage/build.gradle index 86065d7342..7a5ebcc4fb 100644 --- a/eventmesh-protocol-plugin/eventmesh-protocol-openmessage/build.gradle +++ b/eventmesh-protocol-plugin/eventmesh-protocol-openmessage/build.gradle @@ -23,5 +23,4 @@ dependencies { testImplementation project(":eventmesh-protocol-plugin:eventmesh-protocol-api") testImplementation "io.cloudevents:cloudevents-core" testImplementation "io.openmessaging:openmessaging-api" - testImplementation "junit:junit" } diff --git a/eventmesh-sdk-java/build.gradle b/eventmesh-sdk-java/build.gradle index 6e256dc8e5..7b91767b06 100644 --- a/eventmesh-sdk-java/build.gradle +++ b/eventmesh-sdk-java/build.gradle @@ -33,7 +33,6 @@ dependencies { testImplementation project(":eventmesh-common") - testImplementation "junit:junit" testImplementation "com.fasterxml.jackson.core:jackson-databind" testImplementation "com.fasterxml.jackson.core:jackson-core" testImplementation "com.fasterxml.jackson.core:jackson-annotations" diff --git a/eventmesh-spi/build.gradle b/eventmesh-spi/build.gradle index 4c485d0cf9..4980522b47 100644 --- a/eventmesh-spi/build.gradle +++ b/eventmesh-spi/build.gradle @@ -18,5 +18,4 @@ dependencies { implementation project(":eventmesh-common") implementation "org.apache.commons:commons-collections4" testImplementation project(":eventmesh-common") - testImplementation "junit:junit" } \ No newline at end of file