Skip to content

Commit

Permalink
Merge pull request #6 from TypeMonkey/modularized
Browse files Browse the repository at this point in the history
Make the modules into JPMS Modules.
  • Loading branch information
Articdive authored Dec 9, 2023
2 parents 355eaaf + 307abb0 commit 4d6594f
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 0 deletions.
18 changes: 18 additions & 0 deletions core/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* The core JNoise module.
*
* Requires JSpecify.
*/
module de.articdive.jnoise.core {
exports de.articdive.jnoise.core.api.functions;
exports de.articdive.jnoise.core.api.modifiers;
exports de.articdive.jnoise.core.api.modules;
exports de.articdive.jnoise.core.api.noisegen;
exports de.articdive.jnoise.core.api.pipeline;
exports de.articdive.jnoise.core.api.transformers;

exports de.articdive.jnoise.core.util;
exports de.articdive.jnoise.core.util.vectors;

requires transitive org.jspecify;
}
23 changes: 23 additions & 0 deletions generators/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* The "generators" JNoise module.
*
* Requires the core JNoise module.
*/
module de.articdive.jnoise.generators {
exports de.articdive.jnoise.generators.noise_parameters.distance_functions;
exports de.articdive.jnoise.generators.noise_parameters.fade_functions;
exports de.articdive.jnoise.generators.noise_parameters.interpolation;
exports de.articdive.jnoise.generators.noise_parameters.return_type_functions;
exports de.articdive.jnoise.generators.noise_parameters.simplex_variants;

exports de.articdive.jnoise.generators.noisegen.constant;
exports de.articdive.jnoise.generators.noisegen.opensimplex;
exports de.articdive.jnoise.generators.noisegen.pattern;
exports de.articdive.jnoise.generators.noisegen.perlin;
exports de.articdive.jnoise.generators.noisegen.random.gaussian;
exports de.articdive.jnoise.generators.noisegen.random.white;
exports de.articdive.jnoise.generators.noisegen.value;
exports de.articdive.jnoise.generators.noisegen.worley;

requires transitive de.articdive.jnoise.core;
}
12 changes: 12 additions & 0 deletions modifiers/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* The "modifiers" JNoise module.
*
* Requires the core JNoise module.
*/
module de.articdive.jnoise.modifiers {
exports de.articdive.jnoise.modifiers.absolute_value;
exports de.articdive.jnoise.modifiers.clamp;
exports de.articdive.jnoise.modifiers.inverter;

requires transitive de.articdive.jnoise.core;
}
14 changes: 14 additions & 0 deletions modules/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* The "modules" JNoise module.
*
* Requires the core JNoise module.
*/
module de.articdive.jnoise.modules {
exports de.articdive.jnoise.modules.blend;
exports de.articdive.jnoise.modules.combination;
exports de.articdive.jnoise.modules.octavation;
exports de.articdive.jnoise.modules.octavation.fractal_functions;
exports de.articdive.jnoise.modules.selection;

requires transitive de.articdive.jnoise.core;
}
15 changes: 15 additions & 0 deletions pipeline/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* The "pipeline" JNoise module.
*
* Requires the "core", "transformers", "generators",
* "modules" and "modifiers" JNoise module.
*/
module de.articdive.jnoise.pipeline {
exports de.articdive.jnoise.pipeline;

requires transitive de.articdive.jnoise.core;
requires transitive de.articdive.jnoise.transformers;
requires transitive de.articdive.jnoise.generators;
requires transitive de.articdive.jnoise.modules;
requires transitive de.articdive.jnoise.modifiers;
}
11 changes: 11 additions & 0 deletions transformers/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* The "transformers" JNoise module.
*
* Requires the core JNoise module.
*/
module de.articdive.jnoise.transformers {
exports de.articdive.jnoise.transformers.domain_warp;
exports de.articdive.jnoise.transformers.scale;

requires transitive de.articdive.jnoise.core;
}

0 comments on commit 4d6594f

Please sign in to comment.