Skip to content

Commit 7205ff9

Browse files
committed
Initiala
1 parent ee3ea77 commit 7205ff9

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ apply plugin: 'com.gradleup.shadow'
2828

2929

3030
group = 'org.mangorage'
31-
version = getLatestGitTag() + "." + getLatestGitVersion() + "-beta.1"
31+
version = getLatestGitTag() + "." + getLatestGitVersion()
3232

3333
println("Version -> " + version)
3434

@@ -70,7 +70,7 @@ test {
7070
publishing {
7171
publications.register("mangobot-publish", MavenPublication) {
7272
artifactId = 'mangobotlaunchtarget'
73-
artifact shadowJar
73+
artifact jar
7474

7575
pom {
7676
name = 'MangoBotCore'

src/main/java/module-info.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
module org.mangorage.mangobotlaunchtarget {
22
requires org.mangorage.bootstrap;
33

4-
exports org.mangorage.mangobotlaunch.launch;
4+
opens org.mangorage.mangobotlaunch.launch;
5+
opens org.mangorage.mangobotlaunch.util;
56

6-
provides org.mangorage.mangobotlaunch.launch.MangoBotLaunchTarget with org.mangorage.mangobotlaunch.launch.MangoBotLaunchTarget;
7-
provides org.mangorage.mangobotlaunch.launch.MangoBotDependencyLocator with org.mangorage.mangobotlaunch.launch.MangoBotDependencyLocator;
7+
provides org.mangorage.bootstrap.api.launch.ILaunchTarget with org.mangorage.mangobotlaunch.launch.MangoBotLaunchTarget;
8+
provides org.mangorage.bootstrap.api.dependency.IDependencyLocator with org.mangorage.mangobotlaunch.launch.MangoBotDependencyLocator;
89

910
uses org.mangorage.bootstrap.api.launch.ILaunchTarget;
11+
uses org.mangorage.bootstrap.api.launch.ILaunchTargetEntrypoint;
1012
uses org.mangorage.bootstrap.api.dependency.IDependencyLocator;
13+
uses org.mangorage.bootstrap.api.module.IModuleConfigurator;
14+
uses org.mangorage.bootstrap.api.transformer.IClassTransformer;
1115
}

src/main/java/org/mangorage/mangobotlaunch/launch/MangoBotLaunchTarget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public String getId() {
7171
public void launch(ModuleLayer bootstrapLayer, ModuleLayer parent, String[] args) throws Throwable {
7272
final var pluginsPath = Path.of("plugins");
7373

74-
List<IDependencyLocator> dependencyLocators = ServiceLoader.load(IDependencyLocator.class, getClass().getClassLoader())
74+
List<IDependencyLocator> dependencyLocators = ServiceLoader.load(bootstrapLayer, IDependencyLocator.class)
7575
.stream()
7676
.map(ServiceLoader.Provider::get)
7777
.toList();

0 commit comments

Comments
 (0)