From d7c167d5afca22fe587a689cc42113c775d96ff5 Mon Sep 17 00:00:00 2001 From: bsorrentino Date: Fri, 25 Oct 2024 10:19:18 +0200 Subject: [PATCH 1/4] build: bump to SNAPSHOT version --- core-jdk8/pom.xml | 2 +- how-tos/pom.xml | 2 +- langchain4j/pom.xml | 2 +- pom.xml | 3 ++- samples/adaptive-rag/pom.xml | 2 +- samples/agent-executor/pom.xml | 2 +- samples/image-to-diagram/pom.xml | 2 +- samples/springai-agentexecutor/pom.xml | 18 ++++++++++++++++-- set-version.sh | 13 ++++++++++++- studio-jetty/pom.xml | 2 +- 10 files changed, 37 insertions(+), 11 deletions(-) diff --git a/core-jdk8/pom.xml b/core-jdk8/pom.xml index b5684c1c..971d885d 100644 --- a/core-jdk8/pom.xml +++ b/core-jdk8/pom.xml @@ -5,7 +5,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-20241024 + 1.0-SNAPSHOT langgraph4j-core-jdk8 diff --git a/how-tos/pom.xml b/how-tos/pom.xml index bcec3946..e494f899 100644 --- a/how-tos/pom.xml +++ b/how-tos/pom.xml @@ -4,7 +4,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-20241024 + 1.0-SNAPSHOT langgraph4j-howtos diff --git a/langchain4j/pom.xml b/langchain4j/pom.xml index abbe1169..85b5032e 100644 --- a/langchain4j/pom.xml +++ b/langchain4j/pom.xml @@ -5,7 +5,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-20241024 + 1.0-SNAPSHOT langgraph4j-langchain4j diff --git a/pom.xml b/pom.xml index 70b009d2..7091974a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-20241024 + 1.0-SNAPSHOT pom langgraph4j::parent @@ -198,6 +198,7 @@ samples/image-to-diagram samples/adaptive-rag samples/agent-executor + samples/springai-agentexecutor diff --git a/samples/adaptive-rag/pom.xml b/samples/adaptive-rag/pom.xml index fe1d234b..f5fb38b5 100644 --- a/samples/adaptive-rag/pom.xml +++ b/samples/adaptive-rag/pom.xml @@ -4,7 +4,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-20241024 + 1.0-SNAPSHOT ../.. diff --git a/samples/agent-executor/pom.xml b/samples/agent-executor/pom.xml index 2a245b7b..094d4e2c 100644 --- a/samples/agent-executor/pom.xml +++ b/samples/agent-executor/pom.xml @@ -4,7 +4,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-20241024 + 1.0-SNAPSHOT ../.. diff --git a/samples/image-to-diagram/pom.xml b/samples/image-to-diagram/pom.xml index 1a84498c..e7199ce8 100644 --- a/samples/image-to-diagram/pom.xml +++ b/samples/image-to-diagram/pom.xml @@ -4,7 +4,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-20241024 + 1.0-SNAPSHOT ../.. diff --git a/samples/springai-agentexecutor/pom.xml b/samples/springai-agentexecutor/pom.xml index 3a9d59c8..cd105cae 100644 --- a/samples/springai-agentexecutor/pom.xml +++ b/samples/springai-agentexecutor/pom.xml @@ -11,7 +11,7 @@ org.bsc.langgraph4j langgraph4j-springai-agentexecutor - 1.0-20241024 + 1.0-SNAPSHOT jar langgraph4j::sample::springai::agentexecutor @@ -41,7 +41,7 @@ org.bsc.langgraph4j langgraph4j-core-jdk8 - 1.0-20241024 + ${project.version} @@ -95,6 +95,11 @@ maven-compiler-plugin 3.13.0 + + org.apache.maven.plugins + maven-deploy-plugin + 3.1.3 + @@ -104,6 +109,15 @@ + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + diff --git a/set-version.sh b/set-version.sh index 39762326..3b61687e 100755 --- a/set-version.sh +++ b/set-version.sh @@ -1,8 +1,19 @@ #!/bin/bash -read -p "version: " ver +# Check if an argument was provided via the command line +if [ $# -gt 0 ]; then + ver="$1" + echo "Argument provided via command line: $ver" +else + # If no argument was provided, prompt the user for input + read -p "Please enter an argument: " user_input + ver="$user_input" + echo "Argument provided by user: $ver" +fi mvn versions:set -DnewVersion=$ver -Pjdk-8,jdk-17 +# unrelated parent +mvn versions:set -DnewVersion=$ver -pl samples/springai-agentexecutor # after this, you need to commit the changes # mvn versions:commit -Pjdk-8,jdk-17 \ No newline at end of file diff --git a/studio-jetty/pom.xml b/studio-jetty/pom.xml index d1dfeb1a..d2c8569b 100644 --- a/studio-jetty/pom.xml +++ b/studio-jetty/pom.xml @@ -6,7 +6,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-20241024 + 1.0-SNAPSHOT langgraph4j-studio-jetty From 3d7153b2df8b46e3c86a4d85d6f3d66716138af6 Mon Sep 17 00:00:00 2001 From: bsorrentino Date: Fri, 25 Oct 2024 10:24:40 +0200 Subject: [PATCH 2/4] build(action): update deploy actions select projects to deploy --- .github/workflows/deploy-snapshot.yaml | 18 +++--------------- .github/workflows/deploy.yaml | 2 +- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deploy-snapshot.yaml b/.github/workflows/deploy-snapshot.yaml index 7b2c4004..06464360 100644 --- a/.github/workflows/deploy-snapshot.yaml +++ b/.github/workflows/deploy-snapshot.yaml @@ -15,11 +15,11 @@ jobs: - uses: actions/checkout@v4 with: ref: main - - name: Set up JDK 8 + - name: Set up JDK 17 uses: actions/setup-java@v4 with: distribution: 'liberica' - java-version: '8' + java-version: '17' java-package: jdk - name: Check for SNAPSHOT version id: check-snapshot @@ -37,16 +37,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OSS_SONATYPE_TOKEN: ${{ secrets.OSS_SONATYPE_TOKEN }} - run: mvn -B clean deploy --file pom.xml -s settings-template.xml - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - distribution: 'liberica' - java-version: '17' - java-package: jdk - - name: Build and Deploy SNAPSHOT - if: steps.check-snapshot.outputs.is_snapshot == 'true' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OSS_SONATYPE_TOKEN: ${{ secrets.OSS_SONATYPE_TOKEN }} - run: mvn -B -pl studio-jetty clean deploy --file pom.xml -s settings-template.xml + run: mvn -B -Pjdk-8 clean deploy --file pom.xml -s settings-template.xml -pl core-jdk8,langchain4j,studio-jetty diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 10021c6c..b39b0581 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -39,4 +39,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OSS_SONATYPE_TOKEN: ${{ secrets.OSS_SONATYPE_TOKEN }} - run: mvn -B -Prelease,jdk-8 source:jar javadoc:jar deploy --file pom.xml -s settings-template.xml -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} + run: mvn -B -Prelease,jdk-8 source:jar javadoc:jar deploy --file pom.xml -s settings-template.xml -pl core-jdk8,langchain4j,studio-jetty -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} From 2fbb7e8c24f220f6ae961629ecc67e3920fc6e54 Mon Sep 17 00:00:00 2001 From: bsorrentino Date: Fri, 25 Oct 2024 21:33:44 +0200 Subject: [PATCH 3/4] build: bump to new release candidate --- core-jdk8/pom.xml | 2 +- how-tos/pom.xml | 2 +- langchain4j/pom.xml | 2 +- pom.xml | 2 +- samples/adaptive-rag/pom.xml | 2 +- samples/agent-executor/pom.xml | 2 +- samples/image-to-diagram/pom.xml | 2 +- samples/springai-agentexecutor/pom.xml | 2 +- studio-jetty/pom.xml | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core-jdk8/pom.xml b/core-jdk8/pom.xml index 971d885d..b66b027b 100644 --- a/core-jdk8/pom.xml +++ b/core-jdk8/pom.xml @@ -5,7 +5,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-SNAPSHOT + 1.0-rc2 langgraph4j-core-jdk8 diff --git a/how-tos/pom.xml b/how-tos/pom.xml index e494f899..6ac3296e 100644 --- a/how-tos/pom.xml +++ b/how-tos/pom.xml @@ -4,7 +4,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-SNAPSHOT + 1.0-rc2 langgraph4j-howtos diff --git a/langchain4j/pom.xml b/langchain4j/pom.xml index 85b5032e..3b23b2d7 100644 --- a/langchain4j/pom.xml +++ b/langchain4j/pom.xml @@ -5,7 +5,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-SNAPSHOT + 1.0-rc2 langgraph4j-langchain4j diff --git a/pom.xml b/pom.xml index 7091974a..45f2b156 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-SNAPSHOT + 1.0-rc2 pom langgraph4j::parent diff --git a/samples/adaptive-rag/pom.xml b/samples/adaptive-rag/pom.xml index f5fb38b5..411a5704 100644 --- a/samples/adaptive-rag/pom.xml +++ b/samples/adaptive-rag/pom.xml @@ -4,7 +4,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-SNAPSHOT + 1.0-rc2 ../.. diff --git a/samples/agent-executor/pom.xml b/samples/agent-executor/pom.xml index 094d4e2c..a7afb374 100644 --- a/samples/agent-executor/pom.xml +++ b/samples/agent-executor/pom.xml @@ -4,7 +4,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-SNAPSHOT + 1.0-rc2 ../.. diff --git a/samples/image-to-diagram/pom.xml b/samples/image-to-diagram/pom.xml index e7199ce8..d7bc5ff5 100644 --- a/samples/image-to-diagram/pom.xml +++ b/samples/image-to-diagram/pom.xml @@ -4,7 +4,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-SNAPSHOT + 1.0-rc2 ../.. diff --git a/samples/springai-agentexecutor/pom.xml b/samples/springai-agentexecutor/pom.xml index cd105cae..81267a47 100644 --- a/samples/springai-agentexecutor/pom.xml +++ b/samples/springai-agentexecutor/pom.xml @@ -11,7 +11,7 @@ org.bsc.langgraph4j langgraph4j-springai-agentexecutor - 1.0-SNAPSHOT + 1.0-rc2 jar langgraph4j::sample::springai::agentexecutor diff --git a/studio-jetty/pom.xml b/studio-jetty/pom.xml index d2c8569b..d0c88685 100644 --- a/studio-jetty/pom.xml +++ b/studio-jetty/pom.xml @@ -6,7 +6,7 @@ org.bsc.langgraph4j langgraph4j-parent - 1.0-SNAPSHOT + 1.0-rc2 langgraph4j-studio-jetty From dcd765c0901b1e36644ee5edd626d96b7e405c5c Mon Sep 17 00:00:00 2001 From: bsorrentino Date: Fri, 25 Oct 2024 21:37:29 +0200 Subject: [PATCH 4/4] docs: update docs with new version --- README.md | 4 ++-- core-jdk8/src/site/markdown/how-tos/index.md | 2 +- src/site/markdown/index.md | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index de54724f..c6f4e992 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ LangGraph for Java. A library for building stateful, multi-agents applications w | Date | Release | info |--------------|----------------| --- -| Oct 12, 2024 | `1.0-rc1` | official release candidate +| Oct 12, 2024 | `1.0-rc2` | official release candidate ## Quick Start @@ -70,7 +70,7 @@ LangGraph for Java. A library for building stateful, multi-agents applications w org.bsc.langgraph4j langgraph4j-core-jdk8 - 1.0-rc1 + 1.0-rc2 ``` diff --git a/core-jdk8/src/site/markdown/how-tos/index.md b/core-jdk8/src/site/markdown/how-tos/index.md index 211a0f00..b721e846 100644 --- a/core-jdk8/src/site/markdown/how-tos/index.md +++ b/core-jdk8/src/site/markdown/how-tos/index.md @@ -14,7 +14,7 @@ Welcome to the LangGraph4j how-to Guides! These guides provide practical, step-b org.bsc.langgraph4j langgraph4j-core-jdk8 - 1.0-rc1 + 1.0-rc2 ``` diff --git a/src/site/markdown/index.md b/src/site/markdown/index.md index 34d67134..49852e10 100644 --- a/src/site/markdown/index.md +++ b/src/site/markdown/index.md @@ -53,7 +53,7 @@ LangGraph for Java. A library for building stateful, multi-agents applications w | Date | Release | info |--------------|----------------| --- -| Oct 12, 2024 | `1.0-rc1` | official release candidate +| Oct 12, 2024 | `1.0-rc2` | official release candidate ## Quick Start @@ -67,7 +67,7 @@ LangGraph for Java. A library for building stateful, multi-agents applications w org.bsc.langgraph4j langgraph4j-core-jdk8 - 1.0-rc1 + 1.0-rc2 ``` @@ -240,7 +240,7 @@ It is available an **embed playground webapp** able to run a Langgraph4j workflo org.bsc.langgraph4j langgraph4j-studio-jetty - 1.0-rc1 + 1.0-rc2 ```