Java 类org.gradle.api.publish.Publication 实例源码

项目:Reer    文件:PublishingPlugin.java   
@Mutate
void addConfiguredPublicationsToProjectPublicationRegistry(ProjectPublicationRegistry projectPublicationRegistry, PublishingExtension extension, ProjectIdentifier projectIdentifier) {
    for (Publication publication : extension.getPublications()) {
        PublicationInternal internalPublication = (PublicationInternal) publication;
        projectPublicationRegistry.registerPublication(projectIdentifier.getPath(), new DefaultProjectPublication(internalPublication.getCoordinates()));
    }
}
项目:gradle-mobile-plugin    文件:XdepsUtil.java   
public static List<DefaultMavenPublication> getMavenPublications(Project project) {
    List<DefaultMavenPublication> xdeps = new ArrayList<>();
    PublishingExtension publishingExtension = getPublishingExtension(project);
    if (publishingExtension != null) {
        PublicationContainer publicationContainer = publishingExtension.getPublications();
        for (Publication publication : publicationContainer) {
            xdeps.add((DefaultMavenPublication)publication);
        }
    }
    return xdeps;
}
项目:Pushjet-Android    文件:PublishingPlugin.java   
@Mutate
void addConfiguredPublicationsToProjectPublicationRegistry(ProjectPublicationRegistry projectPublicationRegistry, PublishingExtension extension, ProjectIdentifier projectIdentifier) {
    for (Publication publication : extension.getPublications()) {
        PublicationInternal internalPublication = (PublicationInternal) publication;
        projectPublicationRegistry.registerPublication(projectIdentifier.getPath(), new DefaultProjectPublication(internalPublication.getCoordinates()));
    }
}
项目:Reer    文件:DefaultPublicationContainer.java   
public DefaultPublicationContainer(Instantiator instantiator) {
    super(Publication.class, instantiator);
}
项目:Reer    文件:DefaultPublicationContainer.java   
@Override
protected void handleAttemptToAddItemWithNonUniqueName(Publication o) {
    throw new InvalidUserDataException(String.format("Publication with name '%s' added multiple times", o.getName()));
}
项目:Reer    文件:PublishOperation.java   
protected PublishOperation(Publication publication, String repository) {
    this.publication = publication;
    this.repository = repository;
}
项目:Pushjet-Android    文件:DefaultPublicationContainer.java   
public DefaultPublicationContainer(Instantiator instantiator) {
    super(Publication.class, instantiator);
}
项目:Pushjet-Android    文件:DefaultPublicationContainer.java   
@Override
protected void handleAttemptToAddItemWithNonUniqueName(Publication o) {
    throw new InvalidUserDataException(String.format("Publication with name '%s' added multiple times", o.getName()));
}
项目:Pushjet-Android    文件:PublishOperation.java   
protected PublishOperation(Publication publication, ArtifactRepository repository) {
    this.publication = publication;
    this.repository = repository;
}
项目:Pushjet-Android    文件:DefaultPublicationContainer.java   
public DefaultPublicationContainer(Instantiator instantiator) {
    super(Publication.class, instantiator);
}
项目:Pushjet-Android    文件:DefaultPublicationContainer.java   
@Override
protected void handleAttemptToAddItemWithNonUniqueName(Publication o) {
    throw new InvalidUserDataException(String.format("Publication with name '%s' added multiple times", o.getName()));
}
项目:Pushjet-Android    文件:PublishOperation.java   
protected PublishOperation(Publication publication, ArtifactRepository repository) {
    this.publication = publication;
    this.repository = repository;
}