
com.liferay.gradle.plugins.rest.builder.internal.util.GradleUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.gradle.plugins.rest.builder Show documentation
Show all versions of com.liferay.gradle.plugins.rest.builder Show documentation
The REST Builder Gradle plugin lets you generate a Liferay REST service layer defined in a rest.yaml file.
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.gradle.plugins.rest.builder.internal.util;
import java.util.Set;
import org.gradle.api.Project;
/**
* @author Peter Shin
*/
public class GradleUtil extends com.liferay.gradle.util.GradleUtil {
public static Project findProject(Project rootProject, String name) {
for (Project project : rootProject.getAllprojects()) {
if (name.equals(project.getName())) {
Set subprojects = project.getSubprojects();
if (subprojects.isEmpty()) {
return project;
}
}
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy