<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>store.coolgaming4</groupId>
  <artifactId>desktopapp</artifactId>
  <version>1.0.0</version>
  <name>${project.groupId}:${project.artifactId}</name>
  <description>A tiny example library.</description>
  <url>https://github.com/yourname/your-repo</url>
  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>yourid</id>
      <name>Your Name</name>
      <email>you@example.com</email>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:https://github.com/yourname/your-repo.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/yourname/your-repo.git</developerConnection>
    <url>https://github.com/yourname/your-repo</url>
    <tag>HEAD</tag>
  </scm>
  <build>
    <plugins>
      <!-- Create sources.jar -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.3.1</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals><goal>jar</goal></goals>
          </execution>
        </executions>
      </plugin>
      <!-- Create javadoc.jar -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.12.0</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals><goal>jar</goal></goals>
          </execution>
        </executions>
      </plugin>
      <!-- Sign all artifacts with GPG -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>3.2.8</version>
        <executions>
          <execution>
            <id>sign</id>
            <phase>verify</phase>
            <goals><goal>sign</goal></goals>
          </execution>
        </executions>
      </plugin>
      <!-- Send to Central Portal (auto bundles + uploads) -->
      <plugin>
        <groupId>org.sonatype.central</groupId>
        <artifactId>central-publishing-maven-plugin</artifactId>
        <version>0.9.0</version>
        <extensions>true</extensions>
        <configuration>
          <publishingServerId>central</publishingServerId>
          <!-- flip to true if you want to auto-publish after validation -->
          <!-- <autoPublish>true</autoPublish> -->
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
