forked from Mirror/ollama4j
Updated GH action to publish maven pkg
Signed-off-by: Amith Koujalgi <amith.koujalgi@razorthink.com>
This commit is contained in:
parent
c528fef5fc
commit
ecc295f484
2
.github/workflows/maven-publish.yml
vendored
2
.github/workflows/maven-publish.yml
vendored
@ -33,7 +33,7 @@ jobs:
|
|||||||
regex: false
|
regex: false
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn --file pom.xml -U clean package -Punit-tests
|
||||||
|
|
||||||
- name: Publish to GitHub Packages Apache Maven
|
- name: Publish to GitHub Packages Apache Maven
|
||||||
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml --file pom.xml
|
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml --file pom.xml
|
||||||
|
105
pom.xml
105
pom.xml
@ -10,6 +10,7 @@
|
|||||||
<name>Ollama4j</name>
|
<name>Ollama4j</name>
|
||||||
<description>Java library for interacting with Ollama API.</description>
|
<description>Java library for interacting with Ollama API.</description>
|
||||||
<url>https://github.com/amithkoujalgi/ollama4j</url>
|
<url>https://github.com/amithkoujalgi/ollama4j</url>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>11</maven.compiler.source>
|
<maven.compiler.source>11</maven.compiler.source>
|
||||||
@ -128,15 +129,15 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<!-- <plugin>-->
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
||||||
<artifactId>maven-release-plugin</artifactId>
|
<!-- <artifactId>maven-release-plugin</artifactId>-->
|
||||||
<version>3.0.1</version>
|
<!-- <version>3.0.1</version>-->
|
||||||
<configuration>
|
<!-- <configuration>-->
|
||||||
<!-- <goals>install</goals>-->
|
<!-- <!– <goals>install</goals>–>-->
|
||||||
<tagNameFormat>v@{project.version}</tagNameFormat>
|
<!-- <tagNameFormat>v@{project.version}</tagNameFormat>-->
|
||||||
</configuration>
|
<!-- </configuration>-->
|
||||||
</plugin>
|
<!-- </plugin>-->
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -188,14 +189,22 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<!-- <distributionManagement>-->
|
||||||
|
<!-- <snapshotRepository>-->
|
||||||
|
<!-- <id>ossrh</id>-->
|
||||||
|
<!-- <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>-->
|
||||||
|
<!-- </snapshotRepository>-->
|
||||||
|
<!-- <repository>-->
|
||||||
|
<!-- <id>ossrh</id>-->
|
||||||
|
<!-- <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>-->
|
||||||
|
<!-- </repository>-->
|
||||||
|
<!-- </distributionManagement>-->
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<snapshotRepository>
|
|
||||||
<id>ossrh</id>
|
|
||||||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
|
||||||
</snapshotRepository>
|
|
||||||
<repository>
|
<repository>
|
||||||
<id>ossrh</id>
|
<id>github</id>
|
||||||
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
|
<name>GitHub Packages</name>
|
||||||
|
<url>https://maven.pkg.github.com/amithkoujalgi/NetWatch</url>
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
@ -251,39 +260,39 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<!-- <plugin>-->
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
||||||
<artifactId>maven-gpg-plugin</artifactId>
|
<!-- <artifactId>maven-gpg-plugin</artifactId>-->
|
||||||
<version>3.1.0</version>
|
<!-- <version>3.1.0</version>-->
|
||||||
<executions>
|
<!-- <executions>-->
|
||||||
<execution>
|
<!-- <execution>-->
|
||||||
<id>sign-artifacts</id>
|
<!-- <id>sign-artifacts</id>-->
|
||||||
<phase>verify</phase>
|
<!-- <phase>verify</phase>-->
|
||||||
<goals>
|
<!-- <goals>-->
|
||||||
<goal>sign</goal>
|
<!-- <goal>sign</goal>-->
|
||||||
</goals>
|
<!-- </goals>-->
|
||||||
<configuration>
|
<!-- <configuration>-->
|
||||||
<!-- Prevent gpg from using pinentry programs. Fixes:
|
<!-- <!– Prevent gpg from using pinentry programs. Fixes:-->
|
||||||
gpg: signing failed: Inappropriate ioctl for device -->
|
<!-- gpg: signing failed: Inappropriate ioctl for device –>-->
|
||||||
<gpgArguments>
|
<!-- <gpgArguments>-->
|
||||||
<arg>--pinentry-mode</arg>
|
<!-- <arg>--pinentry-mode</arg>-->
|
||||||
<arg>loopback</arg>
|
<!-- <arg>loopback</arg>-->
|
||||||
</gpgArguments>
|
<!-- </gpgArguments>-->
|
||||||
</configuration>
|
<!-- </configuration>-->
|
||||||
</execution>
|
<!-- </execution>-->
|
||||||
</executions>
|
<!-- </executions>-->
|
||||||
</plugin>
|
<!-- </plugin>-->
|
||||||
<plugin>
|
<!-- <plugin>-->
|
||||||
<groupId>org.sonatype.plugins</groupId>
|
<!-- <groupId>org.sonatype.plugins</groupId>-->
|
||||||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
<!-- <artifactId>nexus-staging-maven-plugin</artifactId>-->
|
||||||
<version>1.6.13</version>
|
<!-- <version>1.6.13</version>-->
|
||||||
<extensions>true</extensions>
|
<!-- <extensions>true</extensions>-->
|
||||||
<configuration>
|
<!-- <configuration>-->
|
||||||
<serverId>ossrh</serverId>
|
<!-- <serverId>ossrh</serverId>-->
|
||||||
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
|
<!-- <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>-->
|
||||||
<autoReleaseAfterClose>true</autoReleaseAfterClose>
|
<!-- <autoReleaseAfterClose>true</autoReleaseAfterClose>-->
|
||||||
</configuration>
|
<!-- </configuration>-->
|
||||||
</plugin>
|
<!-- </plugin>-->
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.jacoco</groupId>
|
<groupId>org.jacoco</groupId>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user