Compare commits

..

26 Commits

Author SHA1 Message Date
amithkoujalgi
44e4d6f8b0 [maven-release-plugin] prepare release v1.0.27 2023-12-19 20:58:31 +00:00
Amith Koujalgi
b5a647ea30 Update README.md 2023-12-20 02:27:39 +05:30
amithkoujalgi
14c6efb761 [maven-release-plugin] prepare for next development iteration 2023-12-19 20:54:48 +00:00
amithkoujalgi
2ea8faeea8 [maven-release-plugin] prepare release v1.0.26 2023-12-19 20:54:47 +00:00
Amith Koujalgi
9f79dfa936 Update README.md 2023-12-20 02:23:56 +05:30
amithkoujalgi
1fb2258a77 [maven-release-plugin] prepare for next development iteration 2023-12-19 20:49:03 +00:00
amithkoujalgi
5a46e08759 [maven-release-plugin] prepare release v1.0.25 2023-12-19 20:49:01 +00:00
Amith Koujalgi
885fe14309 Update README.md 2023-12-20 02:18:08 +05:30
amithkoujalgi
94d043d0fd [maven-release-plugin] prepare for next development iteration 2023-12-19 20:46:54 +00:00
amithkoujalgi
981a033a1d [maven-release-plugin] prepare release v1.0.24 2023-12-19 20:46:53 +00:00
Amith Koujalgi
e3a8f1e153 Update README.md 2023-12-20 02:15:51 +05:30
amithkoujalgi
2cefc1e80a [maven-release-plugin] prepare for next development iteration 2023-12-19 20:43:57 +00:00
amithkoujalgi
275649329a [maven-release-plugin] prepare release v1.0.23 2023-12-19 20:43:55 +00:00
Amith Koujalgi
581400d44d Update README.md 2023-12-20 02:12:59 +05:30
amithkoujalgi
b0733dcd87 [maven-release-plugin] prepare for next development iteration 2023-12-19 20:27:11 +00:00
amithkoujalgi
148b748efb [maven-release-plugin] prepare release v1.0.22 2023-12-19 20:27:09 +00:00
Amith Koujalgi
9c52368ab2 Update README.md 2023-12-20 01:56:05 +05:30
amithkoujalgi
729dd9c41f [maven-release-plugin] prepare for next development iteration 2023-12-19 19:49:53 +00:00
amithkoujalgi
4b49d6004c [maven-release-plugin] prepare release v1.0.21 2023-12-19 19:49:51 +00:00
Amith Koujalgi
7fd27634d4 Merge remote-tracking branch 'origin/main' 2023-12-20 01:18:43 +05:30
Amith Koujalgi
ea64fc4677 clean up 2023-12-20 01:18:30 +05:30
amithkoujalgi
376cd28e0c [maven-release-plugin] prepare for next development iteration 2023-12-19 19:36:06 +00:00
amithkoujalgi
31c47c6468 [maven-release-plugin] prepare release v1.0.20 2023-12-19 19:36:05 +00:00
Amith Koujalgi
2e34a1514c Merge remote-tracking branch 'origin/main' 2023-12-20 01:05:10 +05:30
Amith Koujalgi
dae99e839d clean up 2023-12-20 01:04:58 +05:30
amithkoujalgi
877901ccff [maven-release-plugin] prepare for next development iteration 2023-12-19 19:15:11 +00:00
5 changed files with 41 additions and 41 deletions

View File

@@ -58,7 +58,6 @@ jobs:
git config --global user.email "koujalgi.amith@gmail.com"
git config --global user.name "amithkoujalgi"
mvn -B -ntp -DskipTests -Pci-cd -Darguments="-DskipTests -Pci-cd" release:clean release:prepare release:perform
# mvn clean -Punit-tests release:clean release:prepare release:perform -B -Darguments="-DskipTests -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}"
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

View File

@@ -7,13 +7,7 @@ ut:
it:
mvn clean verify -Pintegration-tests
#mvn -B clean install -Punit-tests -Dgpg.passphrase="${GPG_PASSPHRASE}" -e
#
#release:
# mvn -B clean install -Punit-tests release:clean release:prepare release:perform -Dgpg.passphrase="${GPG_PASSPHRASE}" -e
#
#update-version:
# mvn versions:set -DnewVersion=1.0.1
#
#deploy:
# mvn clean deploy -Punit-tests -Dgpg.passphrase="$GPG_PASSPHRASE" -e
list-releases:
curl 'https://central.sonatype.com/api/internal/browse/component/versions?sortField=normalizedVersion&sortDirection=asc&page=0&size=12&filter=namespace%3Aio.github.amithkoujalgi%2Cname%3Aollama4j' \
--compressed \
--silent | jq '.components[].version'

View File

@@ -53,34 +53,27 @@ for [Ollama](https://github.com/jmorganca/ollama/blob/main/docs/api.md) APIs.
#### Installation
In your Maven project, add this dependency available in:
- https://central.sonatype.com/artifact/io.github.amithkoujalgi/ollama4j
- [Central Repository](https://s01.oss.sonatype.org/#nexus-search;quick~ollama4j)
In your Maven project, add this dependency:
```xml
<dependency>
<groupId>io.github.amithkoujalgi</groupId>
<artifactId>ollama4j</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.20</version>
</dependency>
```
You might want to include the Maven repository to pull the ollama4j library from. Include this in
your `pom.xml`:
![Maven Central](https://img.shields.io/maven-central/v/io.github.amithkoujalgi/ollama4j?style=for-the-badge&labelColor=gray)
```xml
[![][lib-shield]][lib]
<repositories>
<repository>
<id>ollama4j-from-ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
```
[lib]: https://central.sonatype.com/artifact/io.github.amithkoujalgi/ollama4j
You should also include an implementation of [SL4J](https://www.slf4j.org/) logger in your `pom.xml` file. For example,
[lib-shield]: https://img.shields.io/badge/ollama4j-get_latest_version-blue.svg?style=for-the-badge&labelColor=gray
You might want to include an implementation of [SL4J](https://www.slf4j.org/) logger in your `pom.xml` file. For
example,
Use `slf4j-jdk14` implementation:
@@ -106,14 +99,6 @@ or use `logback-classic` implementation:
or use other suitable implementations.
#### Build:
Build your project to resolve the dependencies:
```shell
mvn clean install -U
```
You can then use the Ollama Java APIs by importing `ollama4j`:
```java
@@ -468,6 +453,10 @@ Run integration tests:
make it
```
#### Releases
Releases (newer artifact versions) are done automatically on pushing the code to the `main` branch through GitHub Actions CI workflow.
#### Traction
[![Star History Chart](https://api.star-history.com/svg?repos=amithkoujalgi/ollama4j&type=Date)](https://star-history.com/#amithkoujalgi/ollama4j&Date)

View File

@@ -1,13 +1,16 @@
Understanding publishing:
https://dzone.com/articles/how-to-publish-artifacts-to-maven-central
GPG Signing setup
Reference Repo:
https://github.com/dsibilio/badge-maker/tree/main
## GPG Setup
## GPG Signing setup
### GPG Setup
https://central.sonatype.org/publish/requirements/gpg/#listing-keys
### Steps
#### Steps
- Create key: `gpg --gen-key` and then list keys to verify: `gpg --list-keys`
- Distributing Your Public Key:
@@ -33,4 +36,19 @@ gpg --armor --export-secret-keys 88AA0C903A513340A0F3094326257A6F6F5F24A9 > ~/ol
https://central.sonatype.org/publish/publish-maven/
### Steps
## List release versions
```shell
curl 'https://central.sonatype.com/api/internal/browse/component/versions?sortField=normalizedVersion&sortDirection=desc&page=0&size=12&filter=namespace%3Aio.github.amithkoujalgi%2Cname%3Aollama4j' \
--compressed \
--silent | jq '.components[].version'
```
Deployment steps to test. [IGNORE THIS FOR PUBLISHING CONTEXT. THIS IS ONLY TO TEST STUFF OUT LOCALLY]
```shell
# release:
mvn -B clean install deploy -Punit-tests -Dgpg.passphrase="${GPG_PASSPHRASE}" -e
#or
mvn -B clean install -Punit-tests release:clean release:prepare release:perform -Dgpg.passphrase="${GPG_PASSPHRASE}" -e
```

View File

@@ -4,7 +4,7 @@
<groupId>io.github.amithkoujalgi</groupId>
<artifactId>ollama4j</artifactId>
<version>1.0.19</version>
<version>1.0.27</version>
<name>Ollama4j</name>
<description>Java library for interacting with Ollama API.</description>
@@ -39,7 +39,7 @@
<connection>scm:git:git@github.com:amithkoujalgi/ollama4j.git</connection>
<developerConnection>scm:git:https://github.com/amithkoujalgi/ollama4j.git</developerConnection>
<url>https://github.com/amithkoujalgi/ollama4j</url>
<tag>v1.0.19</tag>
<tag>v1.0.27</tag>
</scm>
<build>