Package io.root.patcher
Class RootDependency
java.lang.Object
io.root.patcher.RootDependency
Represents a Maven dependency as separate group, name, and version components.
-
Constructor Summary
ConstructorsConstructorDescriptionRootDependency(String coords) Parses a Maven GAV string of the formgroup:artifact:version.RootDependency(String group, String name, String version) -
Method Summary
Modifier and TypeMethodDescriptionReturns a map withgroup,name, andversionkeys, suitable for passing to Gradle'suseTarget.
-
Constructor Details
-
RootDependency
- Parameters:
group- Maven group IDname- Maven artifact IDversion- artifact version
-
RootDependency
Parses a Maven GAV string of the formgroup:artifact:version.- Parameters:
coords- Maven GAV string- Throws:
IllegalArgumentException- ifcoordsdoes not contain exactly two colons
-
-
Method Details
-
toBuildTarget
Returns a map withgroup,name, andversionkeys, suitable for passing to Gradle'suseTarget.- Returns:
- dependency coordinates as a map
-