ArtifactHandler createArtifactHandler(Instantiator instantiator, DependencyMetaDataProvider dependencyMetaDataProvider, ConfigurationContainerInternal configurationContainer) { NotationParser<Object, ConfigurablePublishArtifact> publishArtifactNotationParser = new PublishArtifactNotationParserFactory(instantiator, dependencyMetaDataProvider).create(); return instantiator.newInstance(DefaultArtifactHandler.class, configurationContainer, publishArtifactNotationParser); }
public ArtifactHandler getArtifacts() { if (artifactHandler == null) { artifactHandler = services.get(ArtifactHandler.class); } return artifactHandler; }
public void setArtifactHandler(ArtifactHandler artifactHandler) { this.artifactHandler = artifactHandler; }
ArtifactHandler createArtifactHandler(Instantiator instantiator, DependencyMetaDataProvider dependencyMetaDataProvider, ConfigurationContainerInternal configurationContainer) { NotationParser<Object, PublishArtifact> publishArtifactNotationParser = new PublishArtifactNotationParserFactory(instantiator, dependencyMetaDataProvider).create(); return new DefaultArtifactHandler(configurationContainer, publishArtifactNotationParser); }
public ArtifactHandler getArtifacts() { return artifactHandler; }
/** * Returns a handler for assigning artifacts produced by the project to configurations. * <h3>Examples:</h3>See docs for {@link ArtifactHandler} */ ArtifactHandler getArtifacts();
/** * Provide the artifact handler as model * * @param services Service registry to look up services * @return Artifact handler */ @Model @Hidden public ArtifactHandler artifactHandler(ServiceRegistry services) { return services.get(ArtifactHandler.class); }