From 947d40aa366e33b93f747b4cf228eef6dd19e7e7 Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Mon, 8 Jan 2024 07:51:31 -0600 Subject: [PATCH] Fixes #3607 - Create Piranha Uber module (#3608) --- pom.xml | 1 + uber/pom.xml | 15 +++++++ .../java/cloud/piranha/uber/UberPiranha.java | 45 +++++++++++++++++++ uber/src/main/java/module-info.java | 38 ++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 uber/pom.xml create mode 100644 uber/src/main/java/cloud/piranha/uber/UberPiranha.java create mode 100644 uber/src/main/java/module-info.java diff --git a/pom.xml b/pom.xml index 272528759f..f117637d55 100644 --- a/pom.xml +++ b/pom.xml @@ -55,6 +55,7 @@ micro resource spring + uber diff --git a/uber/pom.xml b/uber/pom.xml new file mode 100644 index 0000000000..d81bc94267 --- /dev/null +++ b/uber/pom.xml @@ -0,0 +1,15 @@ + + + + 4.0.0 + + cloud.piranha + project + 24.1.0-SNAPSHOT + + piranha-uber + jar + Piranha - Uber + diff --git a/uber/src/main/java/cloud/piranha/uber/UberPiranha.java b/uber/src/main/java/cloud/piranha/uber/UberPiranha.java new file mode 100644 index 0000000000..fd39798dc8 --- /dev/null +++ b/uber/src/main/java/cloud/piranha/uber/UberPiranha.java @@ -0,0 +1,45 @@ +/* + * Copyright (c) 2002-2024 Manorrock.com. All Rights Reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. 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. + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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. + */ + +package cloud.piranha.uber; + +/** + * The uber version of Piranha. + * + * @author Manfred Riem (mriem@manorrock.com) + */ +public class UberPiranha { + + /** + * Main method. + * + * @param arguments the command-line arguments. + */ + public static void main(String[] arguments) { + } +} diff --git a/uber/src/main/java/module-info.java b/uber/src/main/java/module-info.java new file mode 100644 index 0000000000..19f2f996a5 --- /dev/null +++ b/uber/src/main/java/module-info.java @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2002-2024 Manorrock.com. All Rights Reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. 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. + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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. + */ + +/** + * This module delivers Piranha Uber. + * + * @author Manfred Riem (mriem@manorrock.com) + */ +module cloud.piranha.embedded { + + exports cloud.piranha.uber; + opens cloud.piranha.uber; +}