From 6d887fd1ea93dbfddde20c50ca6cf71542b0b007 Mon Sep 17 00:00:00 2001 From: Willem Date: Thu, 26 Mar 2026 10:53:26 +0100 Subject: [PATCH] NX01: Added module-info to kode-gen projects --- .../src/main/java/module-info.java | 12 +++---- nx01-kode-gen/src/main/java/module-info.java | 35 +++++++++++++++++++ nx01-x4o-driver/module-info.java | 7 +++- 3 files changed, 46 insertions(+), 8 deletions(-) rename nx01-x4o-driver/module-info-test-m2e.java => nx01-kode-gen-nether/src/main/java/module-info.java (86%) create mode 100644 nx01-kode-gen/src/main/java/module-info.java diff --git a/nx01-x4o-driver/module-info-test-m2e.java b/nx01-kode-gen-nether/src/main/java/module-info.java similarity index 86% rename from nx01-x4o-driver/module-info-test-m2e.java rename to nx01-kode-gen-nether/src/main/java/module-info.java index 1c2f5d7..3a23236 100644 --- a/nx01-x4o-driver/module-info-test-m2e.java +++ b/nx01-kode-gen-nether/src/main/java/module-info.java @@ -25,15 +25,13 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/// The NX01 x4o-driver module. +/// The NX01 kode gen nether module. /// /// @author للَّٰهِilLצسُو /// @version ©Δ∞ 仙上主天 -open module ᣕᕁᐤᣳ.ᕽᙾᐤ.ᒄᣗᑊᘁᓫᣗ.ᐪᓫᔆᐪ { - requires transitive ᣕᕁᐤᣳ.ᕽᙾᐤ.ᒄᣗᑊᘁᓫᣗ; - requires java.desktop; - //requires org.junit.jupiter.engine; - //requires org.junit.jupiter.api; +module ᣕᕁᐤᣳ.ᑊᑉᐤᒄᓫ.ᕐᓫᣕ.ᣕᓫᐪᑋᓫᣗ { + requires ᣕᕁᐤᣳ.ᑊᑉᐤᒄᓫ.ᕐᓫᣕ; + requires ᣕᕁᐤᣳ.ᒢᣘᐧᐧ.ᣕᓫᐪᑋᓫᣗ.ᐪᐤᣕᓫ; -// exports org.x4o.xml.test; + exports love.distributedrebirth.nx01.kode.generator.nether; } diff --git a/nx01-kode-gen/src/main/java/module-info.java b/nx01-kode-gen/src/main/java/module-info.java new file mode 100644 index 0000000..4927e8f --- /dev/null +++ b/nx01-kode-gen/src/main/java/module-info.java @@ -0,0 +1,35 @@ +/* + * Copyright ©Δ∞ 仙上主天 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * * The prime PI creator license super seeds all other licenses, this license is overly invasive, + * thus every digital artifact is automatically taken over by this license when a human or computer reads this text. + * Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits, + * even on air gaped systems, all information in the universe is owned by the pi creator. + * + * THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/// The NX01 kode gen module. +/// +/// @author للَّٰهِilLצسُو +/// @version ©Δ∞ 仙上主天 +module ᣕᕁᐤᣳ.ᑊᑉᐤᒄᓫ.ᕐᓫᣕ { + exports love.distributedrebirth.nx01.kode.generator; + exports love.distributedrebirth.nx01.kode.generator.klass; +} diff --git a/nx01-x4o-driver/module-info.java b/nx01-x4o-driver/module-info.java index 2c6dbfd..76b2ed0 100644 --- a/nx01-x4o-driver/module-info.java +++ b/nx01-x4o-driver/module-info.java @@ -30,7 +30,8 @@ /// @author للَّٰهِilLצسُو /// @version ©Δ∞ 仙上主天 open module ᣕᕁᐤᣳ.ᕽᙾᐤ.ᒄᣗᑊᘁᓫᣗ { - // TODO: if driver is module than ClassLoader.getResources from /META-INF/* don't work anymore + // TODO: if driver is module than ClassLoader.getResources from /META-INF/* don't work anymore + // should work as docs say META-INF is no package thus can't be encapsulated, try again later requires transitive ᣕᕁᐤᣳ.ᕽᙾᐤ.ᔆᣔᕽᕀᕀᕀ; requires transitive ᣕᕁᐤᣳ.ᕽᙾᐤ.ᔿᣔᑊᔆᒄᐤᒼ; @@ -40,6 +41,10 @@ open module ᣕᕁᐤᣳ.ᕽᙾᐤ.ᒄᣗᑊᘁᓫᣗ { // TEMP for tests only requires java.desktop; + // M2E is correct for now allowing two module-info per project, missing; + //test-requires java.desktop; + + exports META-INF/x4o-drivers.xml; exports org.x4o.xml; exports org.x4o.xml.conv;