remove kotlin-stdlib-jdk8 dependency #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: snapshot_release | |
# Only run on pushes to main: | |
# Replace with 'on: [push]' if you need to run tests on your PR | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
snapshot_release: | |
if: github.repository == 'langchain4j/langchain4j-community' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
# Modules specify the oldest java version that they support: | |
# even if we build with version 21, produced jars should be compatible with | |
# JVMs running the version specified in each module's maven.compiler.target property | |
java-version: '21' | |
distribution: 'temurin' | |
server-id: ossrh | |
server-username: OSSRH_USERNAME | |
server-password: OSSRH_PASSWORD | |
- name: snapshot_release | |
env: | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
# Notes: | |
# - tests already run in a separate action (main) | |
run: | | |
mvn -B -U --fail-at-end \ | |
-DskipTests -DskipITs \ | |
clean deploy | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v4 | |
if: success() || failure() # always run even if the previous step fails | |
with: | |
report_paths: '**/target/*-reports/TEST-*.xml' | |
annotate_only: true |