RFR: 1713: Fix gradle deprecations

Erik Joelsson erikj at openjdk.org
Mon Dec 5 19:41:08 UTC 2022

This patch tries to fix the deprecation warnings currently printed by Gradle when building Skara.

* enabled -> required: a simple rename of an attribute
* TestReport was a little trickier, but as far as I can tell, this is how it's supposed to be done now, and it works just as well/bad as it did before this change. It's not clear to me what the testReport task is good for here, as it seems to me that it will only run if all tests are successful.
* ModulePlugin.java: Was using some deprecated APIs. While at it I let Intellij fix some things that it was warning about. The null checks I removed were weird as the returned object was essentially an `Optional` (a different implementation of the same thing). Switched to using the modern instanceof assignment.
* I updated gradle-wrapper.properties to match the version used by the Skara gradlew wrapper script. Intellij will by default pick the version from the properties file, so as long as we have that file around, we should make sure they match. I needed to do this to make the build succeed in Intellij as some of these changes didn't work in Gradle 7.2.


Commit messages:
 - SKARA-1713

Changes: https://git.openjdk.org/skara/pull/1433/files
 Webrev: https://webrevs.openjdk.org/?repo=skara&pr=1433&range=00
  Issue: https://bugs.openjdk.org/browse/SKARA-1713
  Stats: 46 lines in 3 files changed: 11 ins; 15 del; 20 mod
  Patch: https://git.openjdk.org/skara/pull/1433.diff
  Fetch: git fetch https://git.openjdk.org/skara pull/1433/head:pull/1433

PR: https://git.openjdk.org/skara/pull/1433

More information about the skara-dev mailing list