Integrated: 1713: Fix gradle deprecations

Erik Joelsson erikj at
Mon Dec 5 21:44:01 UTC 2022

On Mon, 5 Dec 2022 19:34:07 GMT, Erik Joelsson <erikj at> wrote:

> 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.
> * 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 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.

This pull request has now been integrated.

Changeset: 769c69b6
Author:    Erik Joelsson <erikj at>
Stats:     43 lines in 3 files changed: 11 ins; 15 del; 17 mod

1713: Fix gradle deprecations

Reviewed-by: ihse



More information about the skara-dev mailing list