@@ -1240,7 +1240,7 @@ public void error(String msg, Throwable t) {
12401240 boolean alreadyInjected = injectAllReactorProjects && contextProperties != null ;
12411241 if (alreadyInjected ) {
12421242 log .info (
1243- "injectAllReactorProjects is enabled - attempting to use the already computed values" );
1243+ "injectAllReactorProjects is enabled - attempting to use the already computed values" );
12441244 // makes sure the existing context properties are not mutated
12451245 properties = new Properties (contextProperties );
12461246 }
@@ -1350,7 +1350,7 @@ public boolean shouldGenerateGitPropertiesFile() {
13501350
13511351 @ Override
13521352 public void performPublishToAllSystemEnvironments (Properties properties ) {
1353- publishToAllSystemEnvironments (getLogInterface (), properties , contextProperties );
1353+ publishToAllSystemEnvironments (getLogInterface (), properties , contextProperties );
13541354 }
13551355
13561356 @ Override
@@ -1410,20 +1410,23 @@ public boolean shouldPropertiesEscapeUnicode() {
14101410 }
14111411 }
14121412
1413- private void publishToAllSystemEnvironments (LogInterface log , Properties propertiesToPublish , Properties contextProperties ) {
1413+ private void publishToAllSystemEnvironments (
1414+ LogInterface log ,
1415+ Properties propertiesToPublish ,
1416+ Properties contextProperties ) {
14141417 publishPropertiesInto (propertiesToPublish , project .getProperties ());
14151418 // some plugins rely on the user properties (e.g. flatten-maven-plugin)
14161419 publishPropertiesInto (propertiesToPublish , session .getUserProperties ());
14171420
14181421 if (injectAllReactorProjects ) {
14191422 Properties diffPropertiesToPublish = new Properties ();
14201423 propertiesToPublish .forEach ((k , v ) -> {
1421- if (!contextProperties .contains (k )) {
1422- diffPropertiesToPublish .setProperty (k .toString (), v .toString ());
1423- }
1424+ if (!contextProperties .contains (k )) {
1425+ diffPropertiesToPublish .setProperty (k .toString (), v .toString ());
1426+ }
14241427 });
1425- if (!diffPropertiesToPublish .isEmpty ()) {
1426- appendPropertiesToReactorProjects (log , diffPropertiesToPublish );
1428+ if (!diffPropertiesToPublish .isEmpty ()) {
1429+ appendPropertiesToReactorProjects (log , diffPropertiesToPublish );
14271430 }
14281431 }
14291432
@@ -1488,7 +1491,9 @@ private void publishPropertiesInto(Properties propertiesToPublish, Properties pr
14881491 private void appendPropertiesToReactorProjects (LogInterface log , Properties propertiesToPublish ) {
14891492 for (MavenProject mavenProject : reactorProjects ) {
14901493 log .debug ("Adding properties to project: '" + mavenProject .getName () + "'" );
1491- if (mavenProject .equals (project )) continue ;
1494+ if (mavenProject .equals (project )) {
1495+ continue ;
1496+ }
14921497 publishPropertiesInto (propertiesToPublish , mavenProject .getProperties ());
14931498 mavenProject .setContextValue (CONTEXT_KEY , propertiesToPublish );
14941499 }
0 commit comments