All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.edc.plugins.openapimerger.OpenApiMergerPlugin Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
/*
 *  Copyright (c) 2022 Microsoft Corporation
 *
 *  This program and the accompanying materials are made available under the
 *  terms of the Apache License, Version 2.0 which is available at
 *  https://www.apache.org/licenses/LICENSE-2.0
 *
 *  SPDX-License-Identifier: Apache-2.0
 *
 *  Contributors:
 *       Microsoft Corporation - initial API and implementation
 *
 */

package org.eclipse.edc.plugins.openapimerger;

import com.rameshkp.openapi.merger.gradle.plugin.OpenApiMergerGradlePlugin;
import org.eclipse.edc.plugins.openapimerger.tasks.MergeApiSpecByPathTask;
import org.gradle.api.Plugin;
import org.gradle.api.Project;

/**
 * Custom grade plugin to avoid module name duplications.
 * Checks between modules with a gradle build file that their names are unique in the whole project.
 * `samples` and `system-tests` modules are excluded.
 * 

* Ref: Github Issue */ public class OpenApiMergerPlugin implements Plugin { @Override public void apply(Project project) { if (project == project.getRootProject()) { project.getPlugins().apply(OpenApiMergerGradlePlugin.class); project.getTasks().register(MergeApiSpecByPathTask.NAME, MergeApiSpecByPathTask.class); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy