Upgrade the minimum required IntelliJ Platform from 2019.3 to 2021.2.4.
Upgrade the JDK from 8 to 11 (this is the only supported runtime for IntelliJ 2021.2.4).
Upgrade rd-gen from 0.193.37 to 0.212.319 (the last one in wave 212).
Upgrade Gradle from 4.7 to 5.6.4 (the last one that has all the embedded plugins we require).
Upgrade the gradle-intellij-plugin from 0.4.13 to 0.7.3 (the newest one still supporting Gradle 5.6.4).
Upgrade the Kotlin compiler from 1.3.50 to 1.4.31.
Get rid of FindBugs (it started breaking on Java 11 syntax and is unsupported in newer Gradle versions anyway).
Upgrade PowerMock from 1.7.1 to 2.0.2; it is now not a dependency for all tests, but only for the tests of the plugin module.
Upgrade Mockito from 1.10.19 to 4.8.0.
All of the tests that require mocking were migrated from the PowerMock runner to Mockito, since PowerMock doesn't work that well with newer IntelliJ and JDK. Very little usage of PowerMock was left in the code (mostly helper functions' calls like verifyStatic), and I plan to eventually get rid of it completely.
This is possible thanks to newer Mockito's support for mocking static methods.
Remove some redundant mocks in tests (since Mockito complains if there are any).
Upgrade TFS SDK to a new version (for better M1 compatibility).
plugin
module.All of the tests that require mocking were migrated from the PowerMock runner to Mockito, since PowerMock doesn't work that well with newer IntelliJ and JDK. Very little usage of PowerMock was left in the code (mostly helper functions' calls like
verifyStatic
), and I plan to eventually get rid of it completely.This is possible thanks to newer Mockito's support for mocking static methods.