Skip to content
Snippets Groups Projects
Commit 60dfb702 authored by jez04's avatar jez04
Browse files

fix: rename group and tune to publish in maven central repository

parent 2ea4806f
No related merge requests found
Pipeline #1053 failed with stages
in 0 seconds
......@@ -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>javafx-quickstart</artifactId>
<version>1.0.10</version>
<version>1.0.12</version>
<packaging>maven-archetype</packaging>
<name>java21-quickstart-archetype</name>
<description>This artifact is designed for beginers to create preconfigured
JavaFX 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/javafx-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/javafx-quickstart.git</connection>
<developerConnection>https://gitlab.vsb.cz/jez04-vyuka/java2/javafx-quickstart.git</developerConnection>
<url>https://gitlab.vsb.cz/jez04-vyuka/java2/javafx-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>
......@@ -51,4 +118,69 @@
</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>verify</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>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment