Skip to content

Commit

Permalink
Pre-create the idePostSync Task in IntelliJ to prevent it not existin…
Browse files Browse the repository at this point in the history
…g from masking the actual project sync error. (#48)
  • Loading branch information
shartte authored Nov 12, 2023
1 parent 9b1d79d commit c11afbd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ public IdeManagementExtension(Project project) {
if (!rootProject.getPlugins().hasPlugin(EclipsePlugin.class))
rootProject.getPlugins().apply(EclipsePlugin.class);
}

// Always pre-create the idePostSync task if IntelliJ is importing the project, since
// IntelliJ remembers to run the task post-sync even if the import fails. That will cause
// situations where import errors (i.e. dependency resolution errors) will be masked by
// the failed idePostSync task, since it was never created in that particular import.
if (isIdeaImport()) {
getOrCreateIdeImportTask();
}
}

/**
Expand Down

0 comments on commit c11afbd

Please sign in to comment.