dokka icon indicating copy to clipboard operation
dokka copied to clipboard

Update task-selector workaround to use task rules

Open adam-enko opened this issue 1 year ago • 0 comments

Update the workaround for https://github.com/gradle/gradle/issues/22335 to use task rules.

Discussed here.

Goals

  • It should be more clear how to add/link tasks.
  • Tasks should be easier to use, understand, run.
  • tasks should follow conventions (specifically: check runs all verifications, test runs JVM verifications, integrationTest runs all integration tests)

Details

  • Create task rules for propagating tasks:

    • includedBuildTasks_<TASK> → runs <TASK> in included builds
    • subprojectTasks_<TASK> → runs <TASK> in subprojects (this shouldn't be invoked manually, only in by the includedBuildTasks_ rule, otherwise it creates cyclical task dependencies.
  • Update tasks:

    • check runs all validations
    • test runs apiCheck
    • introduce 'publishAllPublicationsToRemoteRepositories' lifecycle task

adam-enko avatar Jan 29 '24 11:01 adam-enko