Skip to content

Fix submission info failure condition with gradle >= 7.6 #194

@alexstaeding

Description

@alexstaeding

Gradle 7.6 introduced a change that affects the way the errors are presented for SubmissionWriteInfoTask. The names of the missing properties are no longer shown:

Old:

Could not evaluate onlyIf predicate for task ':mainWriteSubmissionInfo'.
> 
  There were some errors preparing your submission, please check your Gradle buildscript (e.g. build.gradle.kts).
  The following required properties were not set:
  studentId
  firstName
  lastName

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

Now:

Could not evaluate onlyIf predicate for task ':mainWriteSubmissionInfo'.
> Could not evaluate spec for 'Task satisfies onlyIf spec'.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions