[MNG-7380] Don't log non-threadsafe warning if only building a single module

This closes #655
This commit is contained in:
Falko Modler 2022-01-09 23:58:40 +01:00 committed by Michael Osipov
parent 84cbe1ab2e
commit 99de6b49ee
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class BuilderCommon
lifecycleDebugLogger.debugProjectPlan( project, executionPlan );
if ( session.getRequest().getDegreeOfConcurrency() > 1 )
if ( session.getRequest().getDegreeOfConcurrency() > 1 && session.getProjects().size() > 1 )
{
final Set<Plugin> unsafePlugins = executionPlan.getNonThreadSafePlugins();
if ( !unsafePlugins.isEmpty() )