Skip to content

Commit

Permalink
Prepared pom.xml for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
mulla028 committed Nov 25, 2024
1 parent 04196e6 commit bb1a283
Showing 1 changed file with 103 additions and 2 deletions.
105 changes: 103 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,57 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.example</groupId>
<groupId>io.github.mulla028</groupId>
<artifactId>PolyglotCode</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0</version>
<name>PolyglotCode</name>
<description>Simple CLI Tool that translates your code in ANY programming language! Powered by AI.</description>
<url>https://github.com/mulla028/PolyglotCode</url>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>

<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>

<profiles>
<profile>
<id>ossrh</id>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.keyname>8882786B85D55E84</gpg.keyname>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
</profiles>

<developers>
<developer>
<id>mulla028</id>
<name>Amir Mullagaliev</name>
<email>[email protected]</email>
</developer>
</developers>

<scm>
<connection>scm:git:https://github.com/mulla028/PolyglotCode.git</connection>
<developerConnection>scm:git:ssh://github.com/mulla028/PolyglotCode.git</developerConnection>
<url>https://github.com/mulla028/PolyglotCode</url>
</scm>

<properties>
<maven.compiler.source>21</maven.compiler.source>
Expand Down Expand Up @@ -123,6 +171,59 @@
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.6.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>ossrh</publishingServerId>
<waitUntil>published</waitUntil>
</configuration>
</plugin>

</plugins>
</build>
Expand Down

0 comments on commit bb1a283

Please sign in to comment.