Java Code Examples for org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectPublicationRegistry

The following examples show how to use org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectPublicationRegistry. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: pushfish-android   Author: PushFish   File: MavenPlugin.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Inject
public MavenPlugin(Factory<LoggingManagerInternal> loggingManagerFactory, FileResolver fileResolver,
                   ProjectPublicationRegistry publicationRegistry, ProjectConfigurationActionContainer configurationActionContainer) {
    this.loggingManagerFactory = loggingManagerFactory;
    this.fileResolver = fileResolver;
    this.publicationRegistry = publicationRegistry;
    this.configurationActionContainer = configurationActionContainer;
}
 
Example #2
Source Project: pushfish-android   Author: PushFish   File: PublishingPlugin.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
@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()));
    }
}
 
Example #3
Source Project: pushfish-android   Author: PushFish   File: ToolingRegistrationAction.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void execute(ProjectInternal project) {
    ToolingModelBuilderRegistry modelBuilderRegistry = project.getServices().get(ToolingModelBuilderRegistry.class);
    ProjectPublicationRegistry projectPublicationRegistry = project.getServices().get(ProjectPublicationRegistry.class);
    ProjectTaskLister taskLister = project.getServices().get(ProjectTaskLister.class);

    GradleProjectBuilder gradleProjectBuilder  = new GradleProjectBuilder();
    IdeaModelBuilder ideaModelBuilder = new IdeaModelBuilder(gradleProjectBuilder);
    modelBuilderRegistry.register(new EclipseModelBuilder(gradleProjectBuilder));
    modelBuilderRegistry.register(ideaModelBuilder);
    modelBuilderRegistry.register(gradleProjectBuilder);
    modelBuilderRegistry.register(new GradleBuildBuilder());
    modelBuilderRegistry.register(new BasicIdeaModelBuilder(ideaModelBuilder));
    modelBuilderRegistry.register(new BuildInvocationsBuilder(taskLister));
    modelBuilderRegistry.register(new PublicationsBuilder(projectPublicationRegistry));
}
 
Example #4
Source Project: pushfish-android   Author: PushFish   File: MavenPlugin.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Inject
public MavenPlugin(Factory<LoggingManagerInternal> loggingManagerFactory, FileResolver fileResolver,
                   ProjectPublicationRegistry publicationRegistry, ProjectConfigurationActionContainer configurationActionContainer) {
    this.loggingManagerFactory = loggingManagerFactory;
    this.fileResolver = fileResolver;
    this.publicationRegistry = publicationRegistry;
    this.configurationActionContainer = configurationActionContainer;
}
 
Example #5
Source Project: pushfish-android   Author: PushFish   File: PublishingPlugin.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Inject
public PublishingPlugin(ArtifactPublicationServices publicationServices, Instantiator instantiator, ModelRules modelRules, ProjectPublicationRegistry publicationRegistry) {
    this.publicationServices = publicationServices;
    this.instantiator = instantiator;
    this.modelRules = modelRules;
    this.publicationRegistry = publicationRegistry;
}
 
Example #6
Source Project: pushfish-android   Author: PushFish   File: ToolingRegistrationAction.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void execute(ProjectInternal project) {
    ToolingModelBuilderRegistry modelBuilderRegistry = project.getServices().get(ToolingModelBuilderRegistry.class);
    ProjectPublicationRegistry projectPublicationRegistry = project.getServices().get(ProjectPublicationRegistry.class);

    GradleProjectBuilder gradleProjectBuilder  = new GradleProjectBuilder();
    IdeaModelBuilder ideaModelBuilder = new IdeaModelBuilder(gradleProjectBuilder);
    modelBuilderRegistry.register(new EclipseModelBuilder(gradleProjectBuilder));
    modelBuilderRegistry.register(ideaModelBuilder);
    modelBuilderRegistry.register(gradleProjectBuilder);
    modelBuilderRegistry.register(new GradleBuildBuilder());
    modelBuilderRegistry.register(new BasicIdeaModelBuilder(ideaModelBuilder));
    modelBuilderRegistry.register(new BuildInvocationsBuilder(gradleProjectBuilder));
    modelBuilderRegistry.register(new PublicationsBuilder(projectPublicationRegistry));
}
 
Example #7
Source Project: Pushjet-Android   Author: Pushjet   File: MavenPlugin.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Inject
public MavenPlugin(Factory<LoggingManagerInternal> loggingManagerFactory, FileResolver fileResolver,
                   ProjectPublicationRegistry publicationRegistry, ProjectConfigurationActionContainer configurationActionContainer) {
    this.loggingManagerFactory = loggingManagerFactory;
    this.fileResolver = fileResolver;
    this.publicationRegistry = publicationRegistry;
    this.configurationActionContainer = configurationActionContainer;
}
 
Example #8
Source Project: Pushjet-Android   Author: Pushjet   File: PublishingPlugin.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
@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()));
    }
}
 
Example #9
Source Project: Pushjet-Android   Author: Pushjet   File: ToolingRegistrationAction.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void execute(ProjectInternal project) {
    ToolingModelBuilderRegistry modelBuilderRegistry = project.getServices().get(ToolingModelBuilderRegistry.class);
    ProjectPublicationRegistry projectPublicationRegistry = project.getServices().get(ProjectPublicationRegistry.class);
    ProjectTaskLister taskLister = project.getServices().get(ProjectTaskLister.class);

    GradleProjectBuilder gradleProjectBuilder  = new GradleProjectBuilder();
    IdeaModelBuilder ideaModelBuilder = new IdeaModelBuilder(gradleProjectBuilder);
    modelBuilderRegistry.register(new EclipseModelBuilder(gradleProjectBuilder));
    modelBuilderRegistry.register(ideaModelBuilder);
    modelBuilderRegistry.register(gradleProjectBuilder);
    modelBuilderRegistry.register(new GradleBuildBuilder());
    modelBuilderRegistry.register(new BasicIdeaModelBuilder(ideaModelBuilder));
    modelBuilderRegistry.register(new BuildInvocationsBuilder(taskLister));
    modelBuilderRegistry.register(new PublicationsBuilder(projectPublicationRegistry));
}
 
Example #10
Source Project: Pushjet-Android   Author: Pushjet   File: MavenPlugin.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Inject
public MavenPlugin(Factory<LoggingManagerInternal> loggingManagerFactory, FileResolver fileResolver,
                   ProjectPublicationRegistry publicationRegistry, ProjectConfigurationActionContainer configurationActionContainer) {
    this.loggingManagerFactory = loggingManagerFactory;
    this.fileResolver = fileResolver;
    this.publicationRegistry = publicationRegistry;
    this.configurationActionContainer = configurationActionContainer;
}
 
Example #11
Source Project: Pushjet-Android   Author: Pushjet   File: PublishingPlugin.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Inject
public PublishingPlugin(ArtifactPublicationServices publicationServices, Instantiator instantiator, ModelRules modelRules, ProjectPublicationRegistry publicationRegistry) {
    this.publicationServices = publicationServices;
    this.instantiator = instantiator;
    this.modelRules = modelRules;
    this.publicationRegistry = publicationRegistry;
}
 
Example #12
Source Project: Pushjet-Android   Author: Pushjet   File: ToolingRegistrationAction.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void execute(ProjectInternal project) {
    ToolingModelBuilderRegistry modelBuilderRegistry = project.getServices().get(ToolingModelBuilderRegistry.class);
    ProjectPublicationRegistry projectPublicationRegistry = project.getServices().get(ProjectPublicationRegistry.class);

    GradleProjectBuilder gradleProjectBuilder  = new GradleProjectBuilder();
    IdeaModelBuilder ideaModelBuilder = new IdeaModelBuilder(gradleProjectBuilder);
    modelBuilderRegistry.register(new EclipseModelBuilder(gradleProjectBuilder));
    modelBuilderRegistry.register(ideaModelBuilder);
    modelBuilderRegistry.register(gradleProjectBuilder);
    modelBuilderRegistry.register(new GradleBuildBuilder());
    modelBuilderRegistry.register(new BasicIdeaModelBuilder(ideaModelBuilder));
    modelBuilderRegistry.register(new BuildInvocationsBuilder(gradleProjectBuilder));
    modelBuilderRegistry.register(new PublicationsBuilder(projectPublicationRegistry));
}
 
Example #13
Source Project: pushfish-android   Author: PushFish   File: PublishingPlugin.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Model
ProjectPublicationRegistry projectPublicationRegistry(ServiceRegistry serviceRegistry) {
    return serviceRegistry.get(ProjectPublicationRegistry.class);
}
 
Example #14
Source Project: pushfish-android   Author: PushFish   File: PublishingPlugin.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Mutate
void tasksDependOnProjectPublicationRegistry(CollectionBuilder<Task> tasks, ProjectPublicationRegistry publicationRegistry) {
    //do nothing, the rule is here to introduce a dependency on ProjectPublicationRegistry to TaskContainer
}
 
Example #15
ProjectPublicationRegistry createProjectPublicationRegistry() {
    return new DefaultProjectPublicationRegistry();
}
 
Example #16
Source Project: pushfish-android   Author: PushFish   File: PublicationsBuilder.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
PublicationsBuilder(ProjectPublicationRegistry publicationRegistry) {
    this.publicationRegistry = publicationRegistry;
}
 
Example #17
Source Project: pushfish-android   Author: PushFish   File: BasePlugin.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Inject
public BasePlugin(ProjectPublicationRegistry publicationRegistry, ProjectConfigurationActionContainer configurationActionContainer) {
    this.publicationRegistry = publicationRegistry;
    this.configurationActionContainer = configurationActionContainer;
}
 
Example #18
ProjectPublicationRegistry createProjectPublicationRegistry() {
    return new DefaultProjectPublicationRegistry();
}
 
Example #19
Source Project: pushfish-android   Author: PushFish   File: PublicationsBuilder.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
PublicationsBuilder(ProjectPublicationRegistry publicationRegistry) {
    this.publicationRegistry = publicationRegistry;
}
 
Example #20
Source Project: pushfish-android   Author: PushFish   File: BasePlugin.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Inject
public BasePlugin(ProjectPublicationRegistry publicationRegistry, ProjectConfigurationActionContainer configurationActionContainer) {
    this.publicationRegistry = publicationRegistry;
    this.configurationActionContainer = configurationActionContainer;
}
 
Example #21
Source Project: javaide   Author: tranleduy2000   File: BasePlugin.java    License: GNU General Public License v3.0 4 votes vote down vote up
@Inject
public BasePlugin(ProjectPublicationRegistry publicationRegistry, ProjectConfigurationActionContainer configurationActionContainer) {
    this.publicationRegistry = publicationRegistry;
    this.configurationActionContainer = configurationActionContainer;
}
 
Example #22
Source Project: Pushjet-Android   Author: Pushjet   File: PublishingPlugin.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Model
ProjectPublicationRegistry projectPublicationRegistry(ServiceRegistry serviceRegistry) {
    return serviceRegistry.get(ProjectPublicationRegistry.class);
}
 
Example #23
Source Project: Pushjet-Android   Author: Pushjet   File: PublishingPlugin.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Mutate
void tasksDependOnProjectPublicationRegistry(CollectionBuilder<Task> tasks, ProjectPublicationRegistry publicationRegistry) {
    //do nothing, the rule is here to introduce a dependency on ProjectPublicationRegistry to TaskContainer
}
 
Example #24
ProjectPublicationRegistry createProjectPublicationRegistry() {
    return new DefaultProjectPublicationRegistry();
}
 
Example #25
Source Project: Pushjet-Android   Author: Pushjet   File: PublicationsBuilder.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
PublicationsBuilder(ProjectPublicationRegistry publicationRegistry) {
    this.publicationRegistry = publicationRegistry;
}
 
Example #26
Source Project: Pushjet-Android   Author: Pushjet   File: BasePlugin.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Inject
public BasePlugin(ProjectPublicationRegistry publicationRegistry, ProjectConfigurationActionContainer configurationActionContainer) {
    this.publicationRegistry = publicationRegistry;
    this.configurationActionContainer = configurationActionContainer;
}
 
Example #27
ProjectPublicationRegistry createProjectPublicationRegistry() {
    return new DefaultProjectPublicationRegistry();
}
 
Example #28
Source Project: Pushjet-Android   Author: Pushjet   File: PublicationsBuilder.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
PublicationsBuilder(ProjectPublicationRegistry publicationRegistry) {
    this.publicationRegistry = publicationRegistry;
}
 
Example #29
Source Project: Pushjet-Android   Author: Pushjet   File: BasePlugin.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Inject
public BasePlugin(ProjectPublicationRegistry publicationRegistry, ProjectConfigurationActionContainer configurationActionContainer) {
    this.publicationRegistry = publicationRegistry;
    this.configurationActionContainer = configurationActionContainer;
}