Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
Initial commit.

Add @StructuredPrompt.

Registering AI services factories to use SmallRye default factories instead of Langchain4J default services.

Update Liberty example to include MP AI annotations instead of Langchain4J annotations,

All examples now run with the MP annotations instead of Langchain4J annotations.

Fix MP annotations to match Langchain4J annotations.

Set up Release Workflows

Preparing the release (#49)

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>

Release 0.0.1 (#50)

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>

[maven-release-plugin] prepare release 0.0.1

[maven-release-plugin] prepare for next development iteration

Commit.

Commit.

Git Merge.
  • Loading branch information
Buhake Sindi committed Oct 16, 2024
1 parent 3815068 commit 1000a16
Show file tree
Hide file tree
Showing 91 changed files with 2,675 additions and 2,151 deletions.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: maven
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
ignore:
# Only allow for patch release upgrades
- dependency-name: '*'
update-types: ['version-update:semver-major', 'version-update:semver-minor']
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
4 changes: 4 additions & 0 deletions .github/project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: SmallRye LLM
release:
current-version: 0.0.1
next-version: 1.0.0-SNAPSHOT
64 changes: 64 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: SmallRye Build

on:
push:
branches:
- main
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
- 'NOTICE'
- 'README*'
pull_request:
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
- 'NOTICE'
- 'README*'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [17, 21]
name: build with jdk ${{matrix.java}}

steps:
- uses: actions/checkout@v4
name: checkout

- uses: actions/setup-java@v4
name: set up jdk ${{matrix.java}}
with:
distribution: 'temurin'
java-version: ${{matrix.java}}
cache: 'maven'
cache-dependency-path: '**/pom.xml'

- name: build with maven
run: mvn -B formatter:validate verify --file pom.xml

build-windows:
runs-on: windows-latest
strategy:
matrix:
java: [17, 21]
name: build with jdk ${{matrix.java}} windows

steps:
- uses: actions/checkout@v4
name: checkout

- uses: actions/setup-java@v4
name: set up jdk ${{matrix.java}}
with:
distribution: 'temurin'
java-version: ${{matrix.java}}
cache: 'maven'
cache-dependency-path: '**/pom.xml'

- name: build with maven
run: mvn -B formatter:validate verify --file pom.xml
18 changes: 18 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: SmallRye Prepare Release

on:
pull_request:
types: [ closed ]
paths:
- '.github/project.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
prepare-release:
name: Prepare Release
if: ${{ github.event.pull_request.merged == true}}
uses: smallrye/.github/.github/workflows/prepare-release.yml@main
secrets: inherit
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: SmallRye Release
run-name: Release ${{github.event.inputs.tag || github.ref_name}}
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
tag:
description: 'Tag to release'
required: true

permissions:
attestations: write
id-token: write
# Needed for the publish-* workflows
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
perform-release:
name: Perform Release
uses: smallrye/.github/.github/workflows/perform-release.yml@main
secrets: inherit
with:
version: ${{github.event.inputs.tag || github.ref_name}}
31 changes: 31 additions & 0 deletions .github/workflows/review-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: SmallRye Review Release

on:
pull_request:
paths:
- '.github/project.yml'

jobs:
release:
runs-on: ubuntu-latest
name: pre release

steps:
- uses: radcortez/project-metadata-action@main
name: retrieve project metadata
id: metadata
with:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'

- name: Validate version
if: contains(steps.metadata.outputs.current-version, 'SNAPSHOT')
run: |
echo '::error::Cannot release a SNAPSHOT version.'
exit 1
- uses: radcortez/milestone-review-action@main
name: milestone review
with:
github-token: ${{secrets.GITHUB_TOKEN}}
milestone-title: ${{steps.metadata.outputs.current-version}}
17 changes: 17 additions & 0 deletions .github/workflows/update-milestone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Update Milestone

on:
pull_request_target:
types: [closed]

jobs:
update:
runs-on: ubuntu-latest
name: update-milestone
if: ${{github.event.pull_request.merged == true}}

steps:
- uses: radcortez/milestone-set-action@main
name: milestone set
with:
github-token: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ buildNumber.properties
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath

nb-configuration.xml
.idea


8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

11 changes: 0 additions & 11 deletions .idea/DigmaJCEFProjectPersistence.xml

This file was deleted.

11 changes: 0 additions & 11 deletions .idea/aws.xml

This file was deleted.

82 changes: 0 additions & 82 deletions .idea/compiler.xml

This file was deleted.

35 changes: 0 additions & 35 deletions .idea/encodings.xml

This file was deleted.

20 changes: 0 additions & 20 deletions .idea/jarRepositories.xml

This file was deleted.

Loading

0 comments on commit 1000a16

Please sign in to comment.