https://github.com/wyatt-herkamp/jdm
https://github.com/wyatt-herkamp/jdm
maven
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/wyatt-herkamp/jdm
- Owner: wyatt-herkamp
- Created: 2021-02-13T22:25:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-14T14:11:30.000Z (about 4 years ago)
- Last Synced: 2025-01-27T13:50:31.857Z (3 months ago)
- Topics: maven
- Language: Java
- Homepage:
- Size: 68.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JDM
The Java Dependency Manager
## How to use?
The example module has a simple example for using the library.
```
//Plugins
id("me.kingtux.jdm.jdm-gradle") version "1.0.0-SNAPSHOT"
//Tasks
tasks {
"jar"{
dependsOn(project.tasks.getByName("jdm"))
}
}
//Depends
dependencies {
//Depends you want to load via the JDM loader
jdm(group = "me.kingtux", name = "mavenlibrary", version = "1.0-SNAPSHOT")
jdm("com.google.code.gson:gson:2.8.6")
//depends you want to be shaded in. These two are required
JDMInternal(group = "me.kingtux", name = "jdm-common", version = "1.0.0-SNAPSHOT")
JDMInternal(group = "me.kingtux", name = "jdm-lib", version = "1.0.0-SNAPSHOT")
}
```In your project
```java
class Main {
public static void main(String[] args) {
//The ClassPathController is way for JDM to know how you want to add your your depends into the class path.
//
ClassPathController testClassPathController = new TestClassPathController();
DependManager dependManager = new DependManager(testClassPathController);
dependManager.downloadDependenciesAsync().get();
}
}
```