I am working on a settings convention plugin that applies reckon and foojay plugins via code to root project. Also as soon as subprojects are available it applies the base plugin and configures the reckonTagCreate task to depend on check task. However this code seems to run too early as it cannot find the reckonTagCreate task.
It seems like that Gradle.rootProject.subprojects runs earlier than Gradle.projectsLoaded, which the reckon settings plugin uses to register its tasks.
Maybe you can check if the above would work if reckon would use Gradle.rootProject instead of Gradle.projectsLoaded since reckon only configures tasks on the root project anyways.
As a workaround I will now also use Gradle.projectsLoaded.
I am working on a settings convention plugin that applies reckon and foojay plugins via code to root project. Also as soon as subprojects are available it applies the base plugin and configures the reckonTagCreate task to depend on check task. However this code seems to run too early as it cannot find the reckonTagCreate task.
The following is what I do
It seems like that
Gradle.rootProject.subprojects
runs earlier thanGradle.projectsLoaded
, which the reckon settings plugin uses to register its tasks.Maybe you can check if the above would work if reckon would use
Gradle.rootProject
instead ofGradle.projectsLoaded
since reckon only configures tasks on the root project anyways.As a workaround I will now also use
Gradle.projectsLoaded
.