dev.gradleplugins.GradlePluginDevelopmentRepositoryExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugin-development Show documentation
Show all versions of gradle-plugin-development Show documentation
Gradle plugin development plugins.
package dev.gradleplugins;
import org.gradle.api.Action;
import org.gradle.api.artifacts.dsl.RepositoryHandler;
import org.gradle.api.artifacts.repositories.MavenArtifactRepository;
/**
* Extension methods for {@link RepositoryHandler}.
*/
public interface GradlePluginDevelopmentRepositoryExtension {
/**
* Adds the Gradle Plugin Development repository containing the Gradle API and fixtures.
* This repository is enough for compiling against any versioned Gradle API.
* The Gradle fixtures may require more repositories to be configured.
*
* @return the Gradle Plugin Development repository instance added to the repository handler.
*/
MavenArtifactRepository gradlePluginDevelopment();
/**
* Adds the Gradle Plugin Development repository containing the Gradle API and fixtures configured using the specified action.
* This repository is enough for compiling against any versioned Gradle API.
* The Gradle fixtures may require more repositories to be configured.
*
* @param action the configure action for the repository
* @return the Gradle Plugin Development repository instance added to the repository handler.
*/
MavenArtifactRepository gradlePluginDevelopment(Action super MavenArtifactRepository> action);
/**
* Returns {@link RepositoryHandler} extension methods.
*
* @param repositories the repositories to extends, must not be null
* @return the extension methods, never null
*/
static GradlePluginDevelopmentRepositoryExtension from(RepositoryHandler repositories) {
return new DefaultGradlePluginDevelopmentRepositoryExtension(repositories);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy