dokka
dokka copied to clipboard
Update task-selector workaround to use task rules
Update the workaround for https://github.com/gradle/gradle/issues/22335 to use task rules.
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 theincludedBuildTasks_
rule, otherwise it creates cyclical task dependencies.
-
-
Update tasks:
- check runs all validations
- test runs apiCheck
- introduce 'publishAllPublicationsToRemoteRepositories' lifecycle task