Essentially, the following line will need updating: https://github.com/apache/incubator-heron/blob/2190502da0ad723db86a13216f5d9acd0b4c6474/WORKSPACE#L42
with the "2.0.9" as noted from the available versions here: https://search.maven.org/search?q=g:org.powermock and next running the following? bazel run @unpinned_maven//:pin Sorry, I am new to Bazel. On 2021/10/15 23:16:24, Saad Ur Rahman <[email protected]> wrote: > Hi Huijun, > > maven_install.json should be created automatically by Bazel. I think what I > need to do is update WORKPLACE, but I think the JUnit and Mockito are loaded > as dependencies for PowerMock. The only Java testing framework I see in > WORKPLACE is PowerMock, so I guess I would need to update that to force a > JUnit upgrade? > > > On 2021/10/15 21:19:05, H W <[email protected]> wrote: > > If I understand correctly, change this line, > > https://github.com/apache/incubator-heron/blob/master/maven_install.json#L3056 > > . > > "junit:junit:4.12" -> "junit:junit:5.x" > > > > > > On Fri, Oct 15, 2021 at 9:03 AM Saad Ur Rahman <[email protected]> > > wrote: > > > > > Hello Everyone, > > > > > > Can anyone guide me on how I can update the JUnit 4 dependency to JUnit 5 > > > (Jupiter)? I would like to try and upgrade this dependency and see if it > > > breaks anything. If all is well with the update to JUnit 5 I shall try and > > > update PowerMock and Mockito. Upgrading all of these will allow us to > > > write > > > cleaner and more comprehensive tests. > > > > > > > > > /Saad > > > > > >
