From eb40fb1e25c1009c5ca1d4a84106e24f9b41f011 Mon Sep 17 00:00:00 2001 From: mciolkosz Date: Thu, 18 Aug 2022 10:49:53 -0500 Subject: [PATCH] Maven: - Updated Maven plugins to latest versions CI/CD: - Added stages in case further automation is desired down the line --- .gitlab-ci.yml | 10 +- pom.xml | 377 +++++++++++++++++++++++++------------------------ 2 files changed, 199 insertions(+), 188 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fd2c68d..f0cea48 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,10 +30,14 @@ cache: paths: - .m2/repository -# Builds the Maven project. "-B" is for batch mode -build: +stages: + - compile + +# Compiles the Maven project. "-B" is for batch mode +compile: + stage: compile script: - "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/" #- "export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/" - - "mvn compile -B" + - "mvn clean validate compile -B" - "unset JAVA_HOME" diff --git a/pom.xml b/pom.xml index 1c9e086..ff090df 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,5 @@ - 4.0.0 - - org.bspfsystems - yamlconfiguration - 1.2.1 - jar - - YamlConfiguration - Implementation of SnakeYAML to be easy to use with files. - https://github.com/bspfsystems/YamlConfiguration/ - - BSPF Systems, LLC - https://bspfsystems.org/ - - - - - GNU General Public License, Version 3 - https://www.gnu.org/licenses/gpl-3.0.en.html - - - - - - The Bukkit Project - https://bukkit.org/ - - - md_5 - blog@md-5.net - SpigotMC Pty. Ltd. - https://www.spigotmc.org/ - - - Matt Ciolkosz - mciolkosz@bspfsystems.org - BSPF Systems, LLC - https://bspfsystems.org/ - - - - - scm:git:git@github.com:bspfsystems/YamlConfiguration.git - scm:git:git@github.com:bspfsystems/YamlConfiguration.git - git@github.com:bspfsystems/YamlConfiguration.git - - - - GitHub - https://github.com/bspfsystems/YamlConfiguration/issues/ - - - - - sonatype-nexus - https://oss.sonatype.org/content/repositories/snapshots/ - - - sonatype-nexus - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - - sonatype-releases-repo - https://oss.sonatype.org/content/repositories/releases/ - - - - - - org.jetbrains - annotations - 23.0.0 - compile - - - org.yaml - snakeyaml - 1.30 - compile - - - - - UTF-8 - UTF-8 - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.2.0 - - - https://javadoc.io/doc/org.yaml/snakeyaml/1.29/ - https://javadoc.io/doc/org.jetbrains/annotations/22.0.0/ - - - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts - verify - - sign - - - ${gpg.keyname} - ${gpg.keyname} - - --pinentry-mode - loopback - - - - - - - org.apache.maven.plugins - maven-shade-plugin - 3.2.4 - - true - - - - package - - shade - - - - - - org.apache.maven.plugins - maven-deploy-plugin - 2.8.2 - - false - - - - - + 4.0.0 + + org.bspfsystems + yamlconfiguration + 1.2.1 + jar + + YamlConfiguration + Implementation of SnakeYAML to be easy to use with files. + https://github.com/bspfsystems/YamlConfiguration/ + + BSPF Systems, LLC + https://bspfsystems.org/ + + + + + GNU General Public License, Version 3 + https://www.gnu.org/licenses/gpl-3.0.en.html + + + + + + The Bukkit Project + https://bukkit.org/ + + + md_5 + blog@md-5.net + SpigotMC Pty. Ltd. + https://www.spigotmc.org/ + + + Matt Ciolkosz + mciolkosz@bspfsystems.org + BSPF Systems, LLC + https://bspfsystems.org/ + + + + + scm:git:git@github.com:bspfsystems/YamlConfiguration.git + scm:git:git@github.com:bspfsystems/YamlConfiguration.git + git@github.com:bspfsystems/YamlConfiguration.git + + + + GitHub + https://github.com/bspfsystems/YamlConfiguration/issues/ + + + + + sonatype-nexus + https://oss.sonatype.org/content/repositories/snapshots/ + + + sonatype-nexus + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + sonatype-releases-repo + https://oss.sonatype.org/content/repositories/releases/ + + + + + + apache-maven-releases + https://repository.apache.org/content/repositories/releases/ + + + + + + org.jetbrains + annotations + 23.0.0 + compile + + + org.yaml + snakeyaml + 1.30 + compile + + + + + UTF-8 + UTF-8 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.10.1 + + 1.8 + 1.8 + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.4.0 + + + https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/ + https://javadoc.io/doc/org.yaml/snakeyaml/1.30/ + + + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.0.1 + + + sign-artifacts + verify + + sign + + + ${gpg.keyname} + ${gpg.keyname} + + --pinentry-mode + loopback + + + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.3.0 + + true + + + + package + + shade + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 3.0.0 + + false + + + + +