Skip to content

Deprecated features of Gradle #5

Description

@danwallach

Currently this:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4/userguide/command_line_interface.html#sec:command_line_warnings

The problem seems to be the way we're calling project.javaexec:

gradle.buildFinished { ignoredResult ->
    project.javaexec {
        classpath = configurations.ricechecks
        main = "edu.rice.autograder.AutoGraderKt"
        args = [ "--project", gradeProject,
                 "--config", gradeConfig,
                 "grade" ]
    }
}

Possible solution: finalizedBy:
https://discuss.gradle.org/t/how-to-call-task-execution-from-outside-task/25971

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions