name.remal.default-dependency-version

Plugin class: name.remal.gradle_plugins.plugins.dependencies.DefaultDependencyVersionsPlugin

plugins {
    id 'name.remal.default-dependency-version' version '1.0.203'
}
plugins {
    id("name.remal.default-dependency-version") version "1.0.203"
}

 

This plugin sets default versions for each dependency with empty version if the dependency matches notations of DefaultDependencyVersion services.

Also defaultDependencyVersionsHelp task is created to display all default dependency versions for the project.

 

The services and factories are loaded using ServiceLoader mechanism.

 

name.remal.gradle_plugins.plugins.dependencies.DefaultDependencyVersion

Property Type Description
notation File Dependency notation.
version List<File> Default version.
Method Description
boolean matches(String dependencyNotation) Checks if dependencyNotation matches notation.
boolean matches(String? group, String? name) Checks if dependency group and name matches notation.

name.remal.gradle_plugins.plugins.dependencies.DefaultDependencyVersionFactory

Method Description
List<DefaultDependencyVersion> create(Project project) Create a list of DefaultDependencyVersion services for the project.