Skip to content

Commit

Permalink
junit should only be used in tests
Browse files Browse the repository at this point in the history
add back assertj

revert assertj changes

build issues

centralise junit dependency

Update build.gradle
  • Loading branch information
pjfanning committed Feb 5, 2022
1 parent c99dd2d commit bf85f77
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 9 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ allprojects {
maxWarnings = 0
configFile = new File("${rootDir}/style/checkStyle.xml")
}

dependencies {
testImplementation "junit:junit"
}
}

task tar(type: Tar) {
Expand Down
4 changes: 1 addition & 3 deletions eventmesh-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
dependencies {
api "com.google.guava:guava"
api "org.slf4j:slf4j-api"
api "junit:junit"
api "org.assertj:assertj-core"
api "org.apache.commons:commons-collections4"
api "org.apache.commons:commons-text"
Expand Down Expand Up @@ -65,10 +64,9 @@ dependencies {

testImplementation "io.netty:netty-all"

testImplementation "junit:junit"
testImplementation "org.assertj:assertj-core"

testImplementation "org.mockito:mockito-core"
testImplementation "org.powermock:powermock-module-junit4"
testImplementation "org.powermock:powermock-api-mockito2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@
dependencies {
implementation project(":eventmesh-common")
implementation project(":eventmesh-connector-plugin:eventmesh-connector-api")

}
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ dependencies {
implementation "io.cloudevents:cloudevents-core"
implementation "com.google.guava:guava"
implementation "io.cloudevents:cloudevents-json-jackson"

testImplementation "junit:junit"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ dependencies {

testImplementation project(":eventmesh-protocol-plugin:eventmesh-protocol-api")
testImplementation "io.cloudevents:cloudevents-core"
testImplementation "junit:junit"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit bf85f77

Please sign in to comment.