Java Code Examples for org.gradle.api.internal.project.ProjectInternal#getConvention()

The following examples show how to use org.gradle.api.internal.project.ProjectInternal#getConvention() . 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 File: ReportingBasePlugin.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void apply(ProjectInternal project) {
    Convention convention = project.getConvention();
    ReportingExtension extension = project.getExtensions().create(ReportingExtension.NAME, ReportingExtension.class, project);

    // This convention is deprecated
    convention.getPlugins().put("reportingBase", new ReportingBasePluginConvention(project, extension));
}
 
Example 2
Source File: ReportingBasePlugin.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void apply(ProjectInternal project) {
    Convention convention = project.getConvention();
    ReportingExtension extension = project.getExtensions().create(ReportingExtension.NAME, ReportingExtension.class, project);

    // This convention is deprecated
    convention.getPlugins().put("reportingBase", new ReportingBasePluginConvention(project, extension));
}
 
Example 3
Source File: MavenPlugin.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private MavenPluginConvention addConventionObject(ProjectInternal project, MavenFactory mavenFactory) {
    MavenPluginConvention mavenConvention = new MavenPluginConvention(project, mavenFactory);
    Convention convention = project.getConvention();
    convention.getPlugins().put("maven", mavenConvention);
    return mavenConvention;
}
 
Example 4
Source File: MavenPlugin.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private MavenPluginConvention addConventionObject(ProjectInternal project, MavenFactory mavenFactory) {
    MavenPluginConvention mavenConvention = new MavenPluginConvention(project, mavenFactory);
    Convention convention = project.getConvention();
    convention.getPlugins().put("maven", mavenConvention);
    return mavenConvention;
}
 
Example 5
Source File: MavenPlugin.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private MavenPluginConvention addConventionObject(ProjectInternal project, MavenFactory mavenFactory) {
    MavenPluginConvention mavenConvention = new MavenPluginConvention(project, mavenFactory);
    Convention convention = project.getConvention();
    convention.getPlugins().put("maven", mavenConvention);
    return mavenConvention;
}
 
Example 6
Source File: MavenPlugin.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private MavenPluginConvention addConventionObject(ProjectInternal project, MavenFactory mavenFactory) {
    MavenPluginConvention mavenConvention = new MavenPluginConvention(project, mavenFactory);
    Convention convention = project.getConvention();
    convention.getPlugins().put("maven", mavenConvention);
    return mavenConvention;
}