forked from Mirror/ollama4j
clean up
This commit is contained in:
parent
4dd27b3e1a
commit
dae99e839d
1
.github/workflows/maven-publish.yml
vendored
1
.github/workflows/maven-publish.yml
vendored
@ -58,7 +58,6 @@ jobs:
|
|||||||
git config --global user.email "koujalgi.amith@gmail.com"
|
git config --global user.email "koujalgi.amith@gmail.com"
|
||||||
git config --global user.name "amithkoujalgi"
|
git config --global user.name "amithkoujalgi"
|
||||||
mvn -B -ntp -DskipTests -Pci-cd -Darguments="-DskipTests -Pci-cd" release:clean release:prepare release:perform
|
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:
|
env:
|
||||||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
||||||
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
|
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
|
||||||
|
11
Makefile
11
Makefile
@ -6,14 +6,3 @@ ut:
|
|||||||
|
|
||||||
it:
|
it:
|
||||||
mvn clean verify -Pintegration-tests
|
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
|
|
22
README.md
22
README.md
@ -53,10 +53,7 @@ for [Ollama](https://github.com/jmorganca/ollama/blob/main/docs/api.md) APIs.
|
|||||||
|
|
||||||
#### Installation
|
#### Installation
|
||||||
|
|
||||||
In your Maven project, add this dependency available in:
|
In your Maven project, add this dependency:
|
||||||
|
|
||||||
- https://central.sonatype.com/artifact/io.github.amithkoujalgi/ollama4j
|
|
||||||
- [Central Repository](https://s01.oss.sonatype.org/#nexus-search;quick~ollama4j)
|
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
|
|
||||||
@ -67,20 +64,11 @@ In your Maven project, add this dependency available in:
|
|||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
|
||||||
You might want to include the Maven repository to pull the ollama4j library from. Include this in
|
Get the latest version from [Maven Central](https://central.sonatype.com/artifact/io.github.amithkoujalgi/ollama4j)
|
||||||
your `pom.xml`:
|
or [Nexus Repository](https://s01.oss.sonatype.org/#nexus-search;quick~ollama4j).
|
||||||
|
|
||||||
```xml
|
You might want to include an implementation of [SL4J](https://www.slf4j.org/) logger in your `pom.xml` file. For
|
||||||
|
example,
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>ollama4j-from-ossrh</id>
|
|
||||||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
```
|
|
||||||
|
|
||||||
You should also include an implementation of [SL4J](https://www.slf4j.org/) logger in your `pom.xml` file. For example,
|
|
||||||
|
|
||||||
Use `slf4j-jdk14` implementation:
|
Use `slf4j-jdk14` implementation:
|
||||||
|
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
Understanding publishing:
|
Understanding publishing:
|
||||||
https://dzone.com/articles/how-to-publish-artifacts-to-maven-central
|
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
|
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`
|
- Create key: `gpg --gen-key` and then list keys to verify: `gpg --list-keys`
|
||||||
- Distributing Your Public Key:
|
- Distributing Your Public Key:
|
||||||
@ -33,4 +36,19 @@ gpg --armor --export-secret-keys 88AA0C903A513340A0F3094326257A6F6F5F24A9 > ~/ol
|
|||||||
|
|
||||||
https://central.sonatype.org/publish/publish-maven/
|
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
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user