forked from Mirror/ollama4j
Compare commits
31 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97e3df4f44 | ||
|
|
8b2dccdae1 | ||
|
|
7486016e85 | ||
|
|
1b4ad78acf | ||
|
|
9936200dcc | ||
|
|
5bd3573123 | ||
|
|
761f82f321 | ||
|
|
9ec8e5155b | ||
|
|
47c014968d | ||
|
|
e50b978aa0 | ||
|
|
51a57384e1 | ||
|
|
4425226439 | ||
|
|
80f9f6c370 | ||
|
|
28b8877477 | ||
|
|
c40e9999ab | ||
|
|
d21c331b6e | ||
|
|
6ac6c09693 | ||
|
|
d18148241c | ||
|
|
9e9b3bbb43 | ||
|
|
ed124da25f | ||
|
|
c33f6ec164 | ||
|
|
126d0c8986 | ||
|
|
8a59626f0c | ||
|
|
9e3d48b24d | ||
|
|
ad4a5e36aa | ||
|
|
90d1757b3f | ||
|
|
f2b4bf9ae5 | ||
|
|
6a07ad47c8 | ||
|
|
03a206f089 | ||
|
|
e4bd0f1951 | ||
|
|
51708cf26c |
26
.github/workflows/maven-publish.yml
vendored
26
.github/workflows/maven-publish.yml
vendored
@@ -14,12 +14,10 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
@@ -29,13 +27,8 @@ jobs:
|
|||||||
distribution: 'adopt-hotspot'
|
distribution: 'adopt-hotspot'
|
||||||
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
||||||
|
|
||||||
# - name: Run Tests
|
|
||||||
# run: mvn -U clean verify --file pom.xml
|
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn --file pom.xml -U clean package -Punit-tests
|
run: mvn --file pom.xml -U clean package -Punit-tests
|
||||||
|
|
||||||
- name: Set up Apache Maven Central (Overwrite settings.xml)
|
- name: Set up Apache Maven Central (Overwrite settings.xml)
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with: # running setup-java again overwrites the settings.xml
|
with: # running setup-java again overwrites the settings.xml
|
||||||
@@ -47,9 +40,22 @@ jobs:
|
|||||||
server-password: MAVEN_PASSWORD
|
server-password: MAVEN_PASSWORD
|
||||||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
|
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
gpg-passphrase: MAVEN_GPG_PASSPHRASE
|
gpg-passphrase: MAVEN_GPG_PASSPHRASE
|
||||||
|
- name: Set up Maven cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
- name: Publish to GitHub Packages Apache Maven
|
- name: Publish to GitHub Packages Apache Maven
|
||||||
run: mvn clean deploy -Punit-tests -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}"
|
if: >
|
||||||
|
github.event_name != 'pull_request' &&
|
||||||
|
github.ref_name == 'main' &&
|
||||||
|
contains(github.event.head_commit.message, '[release]')
|
||||||
|
run: |
|
||||||
|
git config --global user.email "koujalgi.amith@gmail.com"
|
||||||
|
git config --global user.name "amithkoujalgi"
|
||||||
|
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 }}
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -5,7 +5,7 @@ it:
|
|||||||
mvn clean verify -Pintegration-tests
|
mvn clean verify -Pintegration-tests
|
||||||
|
|
||||||
build:
|
build:
|
||||||
mvn clean test install -Punit-tests
|
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 clean -Punit-tests release:clean release:prepare release:perform -B
|
||||||
|
|||||||
4
pom.xml
4
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<groupId>io.github.amithkoujalgi</groupId>
|
<groupId>io.github.amithkoujalgi</groupId>
|
||||||
<artifactId>ollama4j</artifactId>
|
<artifactId>ollama4j</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>1.0.9</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,7 +39,7 @@
|
|||||||
<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.0</tag>
|
<tag>v1.0.9</tag>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
Reference in New Issue
Block a user