Skip to content

Commit

Permalink
LPS-88645 Move extension logic
Browse files Browse the repository at this point in the history
  • Loading branch information
petershin authored and brianchandotcom committed May 27, 2020
1 parent 17d8e34 commit b4e2e1c
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ public class WhipDefaultsPlugin extends BaseDefaultsPlugin<WhipPlugin> {

@Override
protected void applyPluginDefaults(Project project, WhipPlugin whipPlugin) {
_addPortalToolDependencies(project);
WhipExtension whipExtension = GradleUtil.getExtension(
project, WhipExtension.class);

_addPortalToolDependencies(project, whipExtension);

_configureTasksTest(project);
}
Expand All @@ -50,9 +53,8 @@ protected Class<WhipPlugin> getPluginClass() {
private WhipDefaultsPlugin() {
}

private void _addPortalToolDependencies(Project project) {
WhipExtension whipExtension = GradleUtil.getExtension(
project, WhipExtension.class);
private void _addPortalToolDependencies(
Project project, WhipExtension whipExtension) {

String version = PortalTools.getVersion(project, _PORTAL_TOOL_NAME);

Expand Down

0 comments on commit b4e2e1c

Please sign in to comment.