You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
@jnehlmeier noticed that it can be difficult to create other settings
plugins that build off the tag/push tasks that reckon registers due to
them being registered after projectLoaded.
Since these are only added to the root project, its a trivial tweak to
just register directly on rootProject and avoid the extra ordering
confusion for downstream authors.
Fixes#200
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
.The text was updated successfully, but these errors were encountered: