Skip to content

Use Gradle task configuration avoidance #32

Description

@jnehlmeier

Since Gradle 5.1 a new API exists to register and configure tasks lazily to avoid creating tasks during configuration phase.

https://docs.gradle.org/current/userguide/task_configuration_avoidance.html

Currently the Ebean Plugin iterates through a bunch of compile tasks by name and while doing so forces Gradle to create these tasks during configuration time instead of execution time.

One can easily see this when running ./gradlew help --scan on any project using the Ebean plugin. On the performance section Gradle shows which tasks have been created during which Gradle phase. Executing the help task should not cause any other tasks to be created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions