File tree Expand file tree Collapse file tree
org/mangorage/mangobotlaunch/launch Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ apply plugin: 'com.gradleup.shadow'
2828
2929
3030group = ' org.mangorage'
31- version = getLatestGitTag() + " ." + getLatestGitVersion() + " -beta.1 "
31+ version = getLatestGitTag() + " ." + getLatestGitVersion()
3232
3333println (" Version -> " + version)
3434
7070publishing {
7171 publications. register(" mangobot-publish" , MavenPublication ) {
7272 artifactId = ' mangobotlaunchtarget'
73- artifact shadowJar
73+ artifact jar
7474
7575 pom {
7676 name = ' MangoBotCore'
Original file line number Diff line number Diff line change 11module 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}
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments