From 38c5f0e5b91d7d85e1f0a4d7d1ae5c1e209a1678 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Thu, 18 Jul 2024 01:15:10 +0200 Subject: [PATCH] Remove unimportant plugin version identifiers --- .../base/data/info/EngineInformation.java | 31 ----------- .../placeholders/EnginePluginLombok.java | 53 ------------------- .../placeholders/EnginePluginShadow.java | 53 ------------------- .../base/utility/PlaceholderEngine.java | 3 -- 4 files changed, 140 deletions(-) delete mode 100644 base/src/main/java/de/staropensource/sosengine/base/internal/placeholders/EnginePluginLombok.java delete mode 100644 base/src/main/java/de/staropensource/sosengine/base/internal/placeholders/EnginePluginShadow.java diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/info/EngineInformation.java b/base/src/main/java/de/staropensource/sosengine/base/data/info/EngineInformation.java index 8b9344c..69531be 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/info/EngineInformation.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/info/EngineInformation.java @@ -326,34 +326,6 @@ public final class EngineInformation { @Getter private static String dependencyLwjgl; - /** - * Provides the version of the Gradle plugin {@code Shadow}. - * - * @since v1-alpha0 - * - * -- GETTER -- - * Provides the version of the Gradle plugin {@code Shadow}. - * - * @return Shadow plugin version - * @since v1-alpha0 - */ - @Getter - private static String pluginShadow; - - /** - * Provides the version of the Gradle plugin {@code Lombok}. - * - * @since v1-alpha0 - * - * -- GETTER -- - * Provides the version of the Gradle plugin {@code Lombok}. - * - * @return Lombok plugin version - * @since v1-alpha0 - */ - @Getter - private static String pluginLombok; - /** * Constructs this class. * @@ -459,8 +431,5 @@ public final class EngineInformation { } gitCommitterName = gitParser.getString("git.commit.user.name"); gitCommitterEmail = gitParser.getString("git.commit.user.email"); - - pluginShadow = gradleParser.getString("pluginShadow"); - pluginLombok = gradleParser.getString("pluginLombok"); } } diff --git a/base/src/main/java/de/staropensource/sosengine/base/internal/placeholders/EnginePluginLombok.java b/base/src/main/java/de/staropensource/sosengine/base/internal/placeholders/EnginePluginLombok.java deleted file mode 100644 index 8815c9f..0000000 --- a/base/src/main/java/de/staropensource/sosengine/base/internal/placeholders/EnginePluginLombok.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Contributors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.sosengine.base.internal.placeholders; - -import de.staropensource.sosengine.base.classes.Placeholder; -import de.staropensource.sosengine.base.data.info.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_plugin_lombok} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EnginePluginLombok implements Placeholder { - /** - * Constructs this class. - * - * @since v1-alpha0 - */ - public EnginePluginLombok() {} - - /** {@inheritDoc} */ - @NotNull - public String getName() { - return "engine_plugin_lombok"; - } - - /** {@inheritDoc} */ - @NotNull - @Override - public String replace(@NotNull String text) { - return text.replace("%" + getName() + "%", EngineInformation.getPluginLombok()); - } -} diff --git a/base/src/main/java/de/staropensource/sosengine/base/internal/placeholders/EnginePluginShadow.java b/base/src/main/java/de/staropensource/sosengine/base/internal/placeholders/EnginePluginShadow.java deleted file mode 100644 index 47ea8ac..0000000 --- a/base/src/main/java/de/staropensource/sosengine/base/internal/placeholders/EnginePluginShadow.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * STAROPENSOURCE ENGINE SOURCE FILE - * Copyright (c) 2024 The StarOpenSource Engine Contributors - * Licensed under the GNU Affero General Public License v3 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.staropensource.sosengine.base.internal.placeholders; - -import de.staropensource.sosengine.base.classes.Placeholder; -import de.staropensource.sosengine.base.data.info.EngineInformation; -import org.jetbrains.annotations.NotNull; - -/** - * Implements the {@code engine_plugin_shadow} placeholder. - * - * @see Placeholder - * @since v1-alpha0 - */ -@SuppressWarnings({ "unused" }) -public final class EnginePluginShadow implements Placeholder { - /** - * Constructs this class. - * - * @since v1-alpha0 - */ - public EnginePluginShadow() {} - - /** {@inheritDoc} */ - @NotNull - public String getName() { - return "engine_plugin_shadow"; - } - - /** {@inheritDoc} */ - @NotNull - @Override - public String replace(@NotNull String text) { - return text.replace("%" + getName() + "%", EngineInformation.getPluginShadow()); - } -} diff --git a/base/src/main/java/de/staropensource/sosengine/base/utility/PlaceholderEngine.java b/base/src/main/java/de/staropensource/sosengine/base/utility/PlaceholderEngine.java index d45c837..bebe431 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/utility/PlaceholderEngine.java +++ b/base/src/main/java/de/staropensource/sosengine/base/utility/PlaceholderEngine.java @@ -110,9 +110,6 @@ public final class PlaceholderEngine { placeholders.add(new EngineGitCommitTimeSecond()); placeholders.add(new EngineGitCommitTimeYear()); placeholders.add(new EngineGitDirty()); - // engine_plugin_* - placeholders.add(new EnginePluginLombok()); - placeholders.add(new EnginePluginShadow()); // engine_version* placeholders.add(new EngineVersion()); placeholders.add(new EngineVersionVersion());