code: public void addArtifact(final Artifact artifact) {
          if (!artifacts.contains(artifact)) {
              if (promoted) {
                  artifact.setPromoted(promoted);
              }
  
              artifacts.add(artifact);
          }
      }
docs: Adds an artifact to the module.
  
  <P>
  INFO: If the module is promoted, all added artifacts will be promoted.
  
  @param artifact Artifact