Search in sources :

Example 1 with ProjectIdentifier

use of org.gradle.tooling.model.ProjectIdentifier in project gradle by gradle.

the class GradleBuildConverter method toPartialGradleProject.

private PartialBasicGradleProject toPartialGradleProject(GradleProject childProject) {
    PartialBasicGradleProject basicGradleProject = new PartialBasicGradleProject();
    basicGradleProject.setName(childProject.getName());
    ProjectIdentifier id = childProject.getProjectIdentifier();
    basicGradleProject.setProjectIdentifier(new DefaultProjectIdentifier(id.getBuildIdentifier().getRootDir(), id.getProjectPath()));
    return basicGradleProject;
}
Also used : ProjectIdentifier(org.gradle.tooling.model.ProjectIdentifier) DefaultProjectIdentifier(org.gradle.tooling.internal.gradle.DefaultProjectIdentifier) PartialBasicGradleProject(org.gradle.tooling.internal.gradle.PartialBasicGradleProject) DefaultProjectIdentifier(org.gradle.tooling.internal.gradle.DefaultProjectIdentifier)

Aggregations

DefaultProjectIdentifier (org.gradle.tooling.internal.gradle.DefaultProjectIdentifier)1 PartialBasicGradleProject (org.gradle.tooling.internal.gradle.PartialBasicGradleProject)1 ProjectIdentifier (org.gradle.tooling.model.ProjectIdentifier)1