Add module-info.java for all subsystems

This commit is contained in:
JeremyStar™ 2024-07-08 11:32:27 +02:00
parent fd6c8851ad
commit 1e5f48f413
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
11 changed files with 148 additions and 0 deletions

View file

@ -0,0 +1,60 @@
/**
* Defines the core of the StarOpenSource Engine.
*
* @since 1-alpha1
*/
module sosengine.base {
// Dependencies
requires transitive java.management;
requires transitive static lombok;
requires transitive org.fusesource.jansi;
requires transitive org.jetbrains.annotations;
requires org.reflections;
// API access
exports de.staropensource.sosengine.base;
exports de.staropensource.sosengine.base.annotations;
exports de.staropensource.sosengine.base.classes;
exports de.staropensource.sosengine.base.classes.events;
exports de.staropensource.sosengine.base.classes.helpers;
exports de.staropensource.sosengine.base.classes.logging;
exports de.staropensource.sosengine.base.data.info;
exports de.staropensource.sosengine.base.data.versioning;
exports de.staropensource.sosengine.base.events;
exports de.staropensource.sosengine.base.exceptions;
exports de.staropensource.sosengine.base.logging;
exports de.staropensource.sosengine.base.logging.implementation;
exports de.staropensource.sosengine.base.types;
exports de.staropensource.sosengine.base.types.dependency;
exports de.staropensource.sosengine.base.types.vectors;
exports de.staropensource.sosengine.base.types.versioning;
exports de.staropensource.sosengine.base.utility;
exports de.staropensource.sosengine.base.utility.converter;
exports de.staropensource.sosengine.base.utility.parser;
exports de.staropensource.sosengine.unittests;
// -> Internal
// These are required for subsystems to function correctly
exports de.staropensource.sosengine.base.internal.events;
// Reflection access
opens de.staropensource.sosengine.base;
opens de.staropensource.sosengine.base.annotations;
opens de.staropensource.sosengine.base.classes;
opens de.staropensource.sosengine.base.classes.events;
opens de.staropensource.sosengine.base.classes.helpers;
opens de.staropensource.sosengine.base.classes.logging;
opens de.staropensource.sosengine.base.data.info;
opens de.staropensource.sosengine.base.data.versioning;
opens de.staropensource.sosengine.base.events;
opens de.staropensource.sosengine.base.exceptions;
opens de.staropensource.sosengine.base.logging;
opens de.staropensource.sosengine.base.logging.implementation;
opens de.staropensource.sosengine.base.types;
opens de.staropensource.sosengine.base.types.dependency;
opens de.staropensource.sosengine.base.types.vectors;
opens de.staropensource.sosengine.base.types.versioning;
opens de.staropensource.sosengine.base.utility;
opens de.staropensource.sosengine.base.utility.converter;
opens de.staropensource.sosengine.base.utility.parser;
opens de.staropensource.sosengine.unittests;
}

View file

@ -45,6 +45,7 @@ dependencies {
// -> Project <- // -> Project <-
implementation project(":base") implementation project(":base")
implementation 'org.fusesource.jansi:jansi:' + project.dependencyJansi // for some reason required or the build fails don't ask me why
} }
javadoc.options { javadoc.options {

View file

@ -95,6 +95,7 @@ dependencies {
// -> Project <- // -> Project <-
implementation project(":base") implementation project(":base")
implementation project(":graphics") implementation project(":graphics")
implementation 'org.fusesource.jansi:jansi:' + project.dependencyJansi // for some reason required or the build fails don't ask me why
} }
javadoc.options { javadoc.options {

View file

@ -0,0 +1,22 @@
module sosengine.opengl {
// Dependencies
// -> Subsystems
requires transitive sosengine.base;
requires transitive sosengine.graphics;
// -> Libraries
requires transitive static lombok;
requires transitive org.jetbrains.annotations;
requires transitive org.lwjgl;
requires transitive org.lwjgl.glfw;
requires transitive org.lwjgl.opengl;
// API access
exports de.staropensource.sosengine.graphics.opengl;
exports de.staropensource.sosengine.graphics.opengl.classes;
exports de.staropensource.sosengine.graphics.opengl.events;
// Reflection access
opens de.staropensource.sosengine.graphics.opengl;
opens de.staropensource.sosengine.graphics.opengl.classes;
opens de.staropensource.sosengine.graphics.opengl.events;
}

View file

@ -0,0 +1,20 @@
module sosengine.graphics {
// Dependencies
// -> Subsystems
requires transitive sosengine.base;
// -> Libraries
requires transitive static lombok;
requires transitive org.jetbrains.annotations;
// API access
exports de.staropensource.sosengine.graphics;
exports de.staropensource.sosengine.graphics.classes;
exports de.staropensource.sosengine.graphics.events;
exports de.staropensource.sosengine.graphics.types;
// Reflection access
opens de.staropensource.sosengine.graphics;
opens de.staropensource.sosengine.graphics.classes;
opens de.staropensource.sosengine.graphics.events;
opens de.staropensource.sosengine.graphics.types;
}

View file

@ -92,6 +92,7 @@ dependencies {
// -> Project <- // -> Project <-
implementation project(":base") implementation project(":base")
implementation project(":graphics") implementation project(":graphics")
implementation 'org.fusesource.jansi:jansi:' + project.dependencyJansi // for some reason required or the build fails don't ask me why
} }
javadoc.options { javadoc.options {

View file

@ -0,0 +1,18 @@
module sosengine.vulkan {
// Dependencies
// -> Subsystems
requires transitive sosengine.base;
requires transitive sosengine.graphics;
// -> Libraries
requires transitive static lombok;
requires transitive org.jetbrains.annotations;
requires transitive org.lwjgl.glfw;
// API access
exports de.staropensource.sosengine.graphics.vulkan;
exports de.staropensource.sosengine.graphics.vulkan.events;
// Reflection access
opens de.staropensource.sosengine.graphics.vulkan;
opens de.staropensource.sosengine.graphics.vulkan.events;
}

View file

@ -37,6 +37,7 @@ dependencies {
// -> Project <- // -> Project <-
implementation project(":base") implementation project(":base")
implementation 'org.fusesource.jansi:jansi:' + project.dependencyJansi // for some reason required or the build fails don't ask me why
} }
javadoc.options { javadoc.options {

View file

@ -0,0 +1,15 @@
module sosengine.slf4j_compat {
// Dependencies
// -> Subsystems
requires transitive sosengine.base;
// -> Libraries
requires transitive static lombok;
requires transitive org.jetbrains.annotations;
requires transitive org.slf4j;
// API access
exports de.staropensource.sosengine.slf4j_compat;
// Reflection access
opens de.staropensource.sosengine.slf4j_compat;
}

View file

@ -39,6 +39,7 @@ dependencies {
implementation project(":graphics") implementation project(":graphics")
implementation project(":graphics:vulkan") implementation project(":graphics:vulkan")
implementation project(":graphics:opengl") implementation project(":graphics:opengl")
implementation 'org.fusesource.jansi:jansi:' + project.dependencyJansi // for some reason required or the build fails don't ask me why
} }
javadoc.options { javadoc.options {

View file

@ -0,0 +1,8 @@
open module sosengine.testapp {
// Dependencies
// -> Subsystems
requires sosengine.base;
requires sosengine.graphics;
// -> Libraries
requires static lombok;
}