File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/main/java/me/qoomon/gradle/gitversioning Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,13 @@ public void apply(@Nonnull Project project) {
1414
1515 project .getExtensions ().create ("gitVersioning" , GitVersioningPluginExtension .class , project );
1616
17- project .getAllprojects ().forEach (it -> it .getTasks ().create ("version" , VersionTask .class ));
17+ // Only Register version task for current project so the plugin may be applied
18+ // on
19+ // sub projects. It would be nice to only define this once for all project in
20+ // a multi-module project, however there are a few other considerations that
21+ // need
22+ // to be made and this current change will make this plugin more composable.
23+ project .getTasks ().register ("version" , VersionTask .class );
1824 }
1925}
2026
You can’t perform that action at this time.
0 commit comments