Compare commits

...

6 Commits

Author SHA1 Message Date
Amith Koujalgi
ebd34a536d [maven-release-plugin] prepare release v1.0.12 2023-12-19 23:26:20 +05:30
Amith Koujalgi
f2c7169aca clean up 2023-12-19 23:25:53 +05:30
Amith Koujalgi
875d1c50b0 [maven-release-plugin] prepare for next development iteration 2023-12-19 22:50:36 +05:30
Amith Koujalgi
8c4533b704 [maven-release-plugin] prepare release v1.0.11 2023-12-19 22:50:33 +05:30
Amith Koujalgi
bb50a66d80 clean up 2023-12-19 22:48:01 +05:30
Amith Koujalgi
e8dccd9b6a [maven-release-plugin] prepare for next development iteration 2023-12-19 22:45:05 +05:30
2 changed files with 70 additions and 36 deletions

View File

@@ -8,7 +8,7 @@ build:
mvn -B clean test install -Punit-tests -Dgpg.passphrase="${GPG_PASSPHRASE}" -e mvn -B clean test install -Punit-tests -Dgpg.passphrase="${GPG_PASSPHRASE}" -e
release: release:
mvn clean -Punit-tests release:clean release:prepare release:perform -B mvn -B clean install -Punit-tests release:clean release:prepare release:perform -Dgpg.passphrase="${GPG_PASSPHRASE}" -e
update-version: update-version:
mvn versions:set -DnewVersion=1.0.1 mvn versions:set -DnewVersion=1.0.1

104
pom.xml
View File

@@ -4,7 +4,7 @@
<groupId>io.github.amithkoujalgi</groupId> <groupId>io.github.amithkoujalgi</groupId>
<artifactId>ollama4j</artifactId> <artifactId>ollama4j</artifactId>
<version>1.0.10</version> <version>1.0.12</version>
<name>Ollama4j</name> <name>Ollama4j</name>
<description>Java library for interacting with Ollama API.</description> <description>Java library for interacting with Ollama API.</description>
@@ -39,22 +39,22 @@
<connection>scm:git:git@github.com:amithkoujalgi/ollama4j.git</connection> <connection>scm:git:git@github.com:amithkoujalgi/ollama4j.git</connection>
<developerConnection>scm:git:https://github.com/amithkoujalgi/ollama4j.git</developerConnection> <developerConnection>scm:git:https://github.com/amithkoujalgi/ollama4j.git</developerConnection>
<url>https://github.com/amithkoujalgi/ollama4j</url> <url>https://github.com/amithkoujalgi/ollama4j</url>
<tag>v1.0.10</tag> <tag>v1.0.12</tag>
</scm> </scm>
<build> <build>
<plugins> <plugins>
<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.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
@@ -81,27 +81,27 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<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>1.5</version> <!-- <version>1.5</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>-->
<!-- This is necessary for gpg to not try to use the pinentry programs --> <!-- &lt;!&ndash; This is necessary for gpg to not try to use the pinentry programs &ndash;&gt;-->
<gpgArguments> <!-- <gpgArguments>-->
<arg>--pinentry-mode</arg> <!-- <arg>&#45;&#45;pinentry-mode</arg>-->
<arg>loopback</arg> <!-- <arg>loopback</arg>-->
</gpgArguments> <!-- </gpgArguments>-->
</configuration> <!-- </configuration>-->
</execution> <!-- </execution>-->
</executions> <!-- </executions>-->
</plugin> <!-- </plugin>-->
<!-- Surefire Plugin for Unit Tests --> <!-- Surefire Plugin for Unit Tests -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
@@ -143,7 +143,7 @@
<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>
@@ -215,6 +215,40 @@
<skipIntegrationTests>false</skipIntegrationTests> <skipIntegrationTests>false</skipIntegrationTests>
</properties> </properties>
</profile> </profile>
<profile>
<id>ci-cd</id>
<properties>
<test.env>unit</test.env>
<skipUnitTests>true</skipUnitTests>
<skipIntegrationTests>true</skipIntegrationTests>
</properties>
<build>
<plugins>
<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>
<!-- Prevent gpg from using pinentry programs. Fixes:
gpg: signing failed: Inappropriate ioctl for device -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles> </profiles>
</project> </project>