diff --git a/pom.xml b/pom.xml index ffa1a1903c5f8d3265212fa91d4627883cad4857..349b918af8ac03b64602ce81d4041681919cef99 100644 --- a/pom.xml +++ b/pom.xml @@ -2,11 +2,41 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> - <groupId>cz.vsb.fei.java2</groupId> + <groupId>io.github.jez04-cs</groupId> <artifactId>java21-quickstart</artifactId> - <version>1.0.3</version> + <version>1.0.13</version> + <packaging>maven-archetype</packaging> + <name>java21-quickstart-archetype</name> + <description>This artifact is designed for beginers to create preconfigured + project with Java 21 and module, with several standarts libraries and + technologies. Created project use Java 21 and contains Junit 5, Log4j2, + Lombok.</description> + <url>https://gitlab.vsb.cz/jez04-vyuka/java2/java21-quickstart</url> + + <licenses> + <license> + <name>MIT License</name> + <url>https://spdx.org/licenses/MIT.html</url> + </license> + </licenses> + + <developers> + <developer> + <name>David JeĹľek</name> + <email>david.jezek@vsb.cz</email> + <organization>VSB - Technical University of Ostrava</organization> + <organizationUrl>https://www.vsb.cz</organizationUrl> + </developer> + </developers> + + <scm> + <connection>https://gitlab.vsb.cz/jez04-vyuka/java2/java21-quickstart.git</connection> + <developerConnection>https://gitlab.vsb.cz/jez04-vyuka/java2/java21-quickstart.git</developerConnection> + <url>https://gitlab.vsb.cz/jez04-vyuka/java2/java21-quickstart</url> + </scm> + <build> <extensions> <extension> @@ -29,6 +59,43 @@ <useDefaultExcludes>false</useDefaultExcludes> </configuration> </plugin> + <plugin> + <!-- + https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>3.3.0</version> + <executions> + <execution> + <id>attach-sources</id> + <phase>verify</phase> + <goals> + <goal>jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-install-plugin</artifactId> + <version>3.1.1</version> + </plugin> + <plugin> + <!-- explicitly define maven-deploy-plugin after other to force + exec order --> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>3.1.1</version> + <executions> + <execution> + <id>deploy</id> + <phase>deploy</phase> + <goals> + <goal>deploy</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> @@ -42,13 +109,79 @@ <distributionManagement> <snapshotRepository> - <id>vsb-archetypes-releases</id> + <id>vsb-archetypes-snapshots</id> <url>https://artifactory.cs.vsb.cz/repository/archetype-snapshots/</url> </snapshotRepository> <repository> - <id>vsb-archetypes-snapshots</id> + <id>vsb-archetypes-releases</id> <url>https://artifactory.cs.vsb.cz/repository/archetype-releases/</url> </repository> </distributionManagement> + <profiles> + <profile> + <id>release</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>3.6.3</version> + <executions> + <execution> + <id>attach-javadocs</id> + <phase>verify</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>net.nicoulaj.maven.plugins</groupId> + <artifactId>checksum-maven-plugin</artifactId> + <version>1.11</version> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>artifacts</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <version>3.1.0</version> + <executions> + <execution> + <id>sign-artifacts</id> + <phase>deploy</phase> + <goals> + <goal>sign</goal> + </goals> + <configuration> + <keyname>9B4FA2AD277F10F5</keyname> + <passphraseServerId>gpg.passphrase</passphraseServerId> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.sonatype.central</groupId> + <artifactId>central-publishing-maven-plugin</artifactId> + <version>0.3.1</version> + <extensions>true</extensions> + <configuration> + <publishingServerId>central</publishingServerId> + <tokenAuth>true</tokenAuth> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> + + </project>