Skip to content

Commit

Permalink
feat: publish to maven central instead
Browse files Browse the repository at this point in the history
  • Loading branch information
astappiev committed Oct 9, 2024
1 parent ccf5bef commit eb4be74
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 16 deletions.
59 changes: 55 additions & 4 deletions interweb-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,29 @@
<packaging>jar</packaging>

<name>Interweb Client</name>
<description>Versatile API that consolidates multiple data providers into one unified interface</description>
<url>https://github.com/l3s-learnweb/interweb</url>

<properties>
<maven.compiler.release>17</maven.compiler.release>
</properties>
<licenses>
<license>
<name>MIT license</name>
<url>https://github.com/l3s-learnweb/interweb/blob/main/LICENSE</url>
</license>
</licenses>

<developers>
<developer>
<name>Oleh Astappiev</name>
<email>[email protected]</email>
<organization>Research Center L3S</organization>
<organizationUrl>https://l3s.de</organizationUrl>
</developer>
</developers>

<scm>
<url>https://github.com/l3s-learnweb/interweb/tree/main</url>
<connection>scm:git:[email protected]:l3s-learnweb/interweb.git</connection>
</scm>

<dependencies>
<dependency>
Expand Down Expand Up @@ -51,13 +70,35 @@
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<executions>
Expand All @@ -77,6 +118,16 @@
</artifactSet>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</plugin>
</plugins>
</build>
</project>
4 changes: 0 additions & 4 deletions interweb-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@

<name>Interweb-core</name>

<properties>
<maven.compiler.release>17</maven.compiler.release>
</properties>

<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
27 changes: 19 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<dependency-plugin.version>3.8.0</dependency-plugin.version>
<compiler-plugin.version>3.13.0</compiler-plugin.version>
<source-plugin.version>3.3.1</source-plugin.version>
<javadoc-plugin.version>3.10.1</javadoc-plugin.version>
<gpg-plugin.version>3.2.7</gpg-plugin.version>
<sonatype-plugin.version>0.6.0</sonatype-plugin.version>
<resources-plugin.version>3.3.1</resources-plugin.version>
<shade-plugin.version>3.6.0</shade-plugin.version>
<jandex-plugin.version>3.2.2</jandex-plugin.version>
Expand All @@ -50,14 +53,6 @@
<module>connectors/YouTubeConnector</module>
</modules>

<distributionManagement>
<repository>
<id>github</id>
<name>Learnweb GitHub Packages</name>
<url>https://maven.pkg.github.com/l3s-learnweb/learnweb</url>
</repository>
</distributionManagement>

<dependencyManagement>
<dependencies>
<dependency>
Expand Down Expand Up @@ -127,6 +122,22 @@
<artifactId>maven-source-plugin</artifactId>
<version>${source-plugin.version}</version>
</plugin>
<!-- Creates a jar archive with sources of the project -->
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc-plugin.version}</version>
</plugin>
<!-- Creates a jar archive with sources of the project -->
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>${gpg-plugin.version}</version>
</plugin>
<!-- Publishing to sonatype repositories -->
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${sonatype-plugin.version}</version>
</plugin>
<!-- Handles the copying of project resources to the output directory -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
Expand Down

0 comments on commit eb4be74

Please sign in to comment.