-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Francisco Solis edited this page Dec 31, 2021
·
1 revision
Welcome to the DependencyDownloaderModule wiki!
We suppose that you're using Kotlin here 😜
- Get the instance with the following code
val dd = DependencyDownloader.instance
Don't forget to import
xyz.theprogramsrc.dependencydownloadermodule.DependencyDownloader
- Add the required repositories. Example:
dd.addRepository(Repository("https://repo1.maven.org/maven2/"))
Don't forget to import
xyz.theprogramsrc.dependencydownloadermodule.objects.*
- Now load the dependency. Example:
val dependency = Dependency("xyz.theprogramsrc", "simplecoreapi", "0.1.0-SNAPSHOT")
// Directly load
dd.loadDependency(dependency)
// Add dependency and load every dependency that's not loaded
dd.addDependency(dependency)
dd.loadDependencies()
Our custom system will fetch the latest snapshot available at the moment of loading the dependency
The dependency will be saved under the folder libraries/DependencyDownloader/<groupId>/<artifactId>-<version>.jar