Skip to content

Conversation

olavloite
Copy link
Collaborator

Update Mockito to a version that supports the Java module system. This should enable
Java17 support.

Also cleans up one of the test files that failed for Java17.

Fixes the build error in #621

Update Mockito to a version that supports the Java module system. This should enable Java17 support. Also cleans up one of the test files that failed for Java17. Fixes the build error in #621
@olavloite olavloite requested a review from thiagotnunes October 6, 2021 16:46
@olavloite olavloite requested review from a team as code owners October 6, 2021 16:46
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/java-spanner-jdbc API. label Oct 6, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 6, 2021
@chanseokoh
Copy link
Contributor

Oh, I missed this, sorry. I enabled the Java 17 build in #630, which upgrades Mockito (a lower version than that).

I initially added a profile to pass an additional JVM flag due to a JPMS thing before upgrading Mockito. But now I think of it, I think that is unnecessary. Please remove that too.

@olavloite olavloite requested a review from chanseokoh October 13, 2021 07:04
@olavloite
Copy link
Collaborator Author

@chanseokoh and @thiagotnunes Would you mind taking a look at this? I've updated the PR to remove the newly introduced JDK17 profile, which should no longer be required.

There is also a PR open for upgrading Mockito to 4.x, but that is not possible yet, as the JDBC driver uses a number of test classes from the java-spanner library, and those tests still rely on Mockito 1.x. I'll look into java-spanner to see if we can get that upgraded as well.

@olavloite olavloite merged commit d78792f into main Oct 13, 2021
@olavloite olavloite deleted the update-mockito branch October 13, 2021 08:01
gcf-merge-on-green bot pushed a commit that referenced this pull request Oct 25, 2021
🤖 I have created a release \*beep\* \*boop\* --- ## [2.5.0](https://www.github.com/googleapis/java-spanner-jdbc/compare/v2.4.5...v2.5.0) (2021-10-25) ### Features * support VIEW in metadata queries ([#633](https://www.github.com/googleapis/java-spanner-jdbc/issues/633)) ([b929191](https://www.github.com/googleapis/java-spanner-jdbc/commit/b929191a7b6699f9daf9a7c06097e9794c79ff8d)), closes [#632](https://www.github.com/googleapis/java-spanner-jdbc/issues/632) ### Bug Fixes * **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-spanner-jdbc/issues/1266)) ([#645](https://www.github.com/googleapis/java-spanner-jdbc/issues/645)) ([0474502](https://www.github.com/googleapis/java-spanner-jdbc/commit/0474502936ff1a43244fcb830fecfc5f42895899)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#641](https://www.github.com/googleapis/java-spanner-jdbc/issues/641)) ([ab26010](https://www.github.com/googleapis/java-spanner-jdbc/commit/ab26010ba107d4ba9591d661743ad542ae3b227f)) * update dependency com.google.cloud:google-cloud-spanner-bom to v6.13.0 ([#637](https://www.github.com/googleapis/java-spanner-jdbc/issues/637)) ([d981c8c](https://www.github.com/googleapis/java-spanner-jdbc/commit/d981c8c744829aa039b16df0b150caf49a99f1cc)) * update dependency com.google.cloud:google-cloud-spanner-bom to v6.14.0 ([#647](https://www.github.com/googleapis/java-spanner-jdbc/issues/647)) ([3cda837](https://www.github.com/googleapis/java-spanner-jdbc/commit/3cda83737c25c8878d19bee1727de84e086065b6)) * upgrade Mockito to support Java17 ([#635](https://www.github.com/googleapis/java-spanner-jdbc/issues/635)) ([d78792f](https://www.github.com/googleapis/java-spanner-jdbc/commit/d78792f7acdd2fdac8a655fba06789ba50457679)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/java-spanner-jdbc API. cla: yes This human has signed the Contributor License Agreement.

3 participants