Skip to content
Francisco Solis edited this page Dec 31, 2021 · 1 revision

Welcome

Welcome to the DependencyDownloaderModule wiki!

Usage

We suppose that you're using Kotlin here 😜


  1. Get the instance with the following code
val dd = DependencyDownloader.instance

Don't forget to import xyz.theprogramsrc.dependencydownloadermodule.DependencyDownloader


  1. Add the required repositories. Example:
dd.addRepository(Repository("https://repo1.maven.org/maven2/"))

Don't forget to import xyz.theprogramsrc.dependencydownloadermodule.objects.*


  1. 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

Clone this wiki locally