Module com.github.sormuras.bach
Package com.github.sormuras.bach.project
Class ExternalModuleBuilder
java.lang.Object
com.github.sormuras.bach.project.ExternalModuleBuilder
A builder of external module objects.
-
Constructor Summary
ConstructorsConstructorDescriptionExternalModuleBuilder(String module)
Constructs an instance of this class with the given components. -
Method Summary
Modifier and TypeMethodDescriptionReturns a module link whose uri is determined by the given target string.Returns a module link pointing to an artifact hosted at the given Maven repository.toMavenCentral(String coordinates)
Returns a module link pointing to an artifact hosted at Maven Central.Returns a module link pointing to local path.Returns a module link pointing to the given uniform resource identifier.Returns a module link pointing to the given uniform resource identifier.
-
Constructor Details
-
ExternalModuleBuilder
Constructs an instance of this class with the given components.- Parameters:
module
- the name of the module to link
-
-
Method Details
-
to
Returns a module link whose uri is determined by the given target string.- Parameters:
target
- the target to parse into a uri- Returns:
- a module link
-
toPath
Returns a module link pointing to local path.- Parameters:
base
- the base directorymore
- the path to the file- Returns:
- an external module link
-
toMaven
Returns a module link pointing to an artifact hosted at the given Maven repository.- Parameters:
repository
- Maven repositorycoordinates
- Maven groupId + ':' + artifactId + ':' version [+ ':' + classifier]- Returns:
- a Maven-based
Link
instance
-
toMavenCentral
Returns a module link pointing to an artifact hosted at Maven Central.- Parameters:
coordinates
- Maven groupId + ':' + artifactId + ':' version [+ ':' + classifier]- Returns:
- a Maven Central-based
Link
instance - See Also:
- search.maven.org
-
toUri
Returns a module link pointing to the given uniform resource identifier.- Parameters:
uri
- uniform resource identifier of the module- Returns:
- a module link
-
toUri
Returns a module link pointing to the given uniform resource identifier.- Parameters:
uri
- uniform resource identifier of the module- Returns:
- a module link
-