Skip to content

Commit

Permalink
Merge branch 'release/1.0-rc2'
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Oct 25, 2024
2 parents c7e20f9 + dcd765c commit 604729f
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 33 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/deploy-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -70,7 +70,7 @@ LangGraph for Java. A library for building stateful, multi-agents applications w
<dependency>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-core-jdk8</artifactId>
<version>1.0-rc1</version>
<version>1.0-rc2</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion core-jdk8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-parent</artifactId>
<version>1.0-20241024</version>
<version>1.0-rc2</version>
</parent>

<artifactId>langgraph4j-core-jdk8</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core-jdk8/src/site/markdown/how-tos/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Welcome to the LangGraph4j how-to Guides! These guides provide practical, step-b
<dependency>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-core-jdk8</artifactId>
<version>1.0-rc1</version>
<version>1.0-rc2</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion how-tos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-parent</artifactId>
<version>1.0-20241024</version>
<version>1.0-rc2</version>
</parent>

<artifactId>langgraph4j-howtos</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion langchain4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-parent</artifactId>
<version>1.0-20241024</version>
<version>1.0-rc2</version>
</parent>

<artifactId>langgraph4j-langchain4j</artifactId>
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-parent</artifactId>
<version>1.0-20241024</version>
<version>1.0-rc2</version>
<packaging>pom</packaging>

<name>langgraph4j::parent</name>
Expand Down Expand Up @@ -198,6 +198,7 @@
<module>samples/image-to-diagram</module>
<module>samples/adaptive-rag</module>
<module>samples/agent-executor</module>
<module>samples/springai-agentexecutor</module>
</modules>
<build>
</build>
Expand Down
2 changes: 1 addition & 1 deletion samples/adaptive-rag/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-parent</artifactId>
<version>1.0-20241024</version>
<version>1.0-rc2</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion samples/agent-executor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-parent</artifactId>
<version>1.0-20241024</version>
<version>1.0-rc2</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion samples/image-to-diagram/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-parent</artifactId>
<version>1.0-20241024</version>
<version>1.0-rc2</version>
<relativePath>../..</relativePath>
</parent>

Expand Down
18 changes: 16 additions & 2 deletions samples/springai-agentexecutor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-springai-agentexecutor</artifactId>
<version>1.0-20241024</version>
<version>1.0-rc2</version>
<packaging>jar</packaging>

<name>langgraph4j::sample::springai::agentexecutor</name>
Expand Down Expand Up @@ -41,7 +41,7 @@
<dependency>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-core-jdk8</artifactId>
<version>1.0-20241024</version>
<version>${project.version}</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -95,6 +95,11 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.3</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand All @@ -104,6 +109,15 @@
<configuration>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

</plugins>
</build>
<repositories>
Expand Down
13 changes: 12 additions & 1 deletion set-version.sh
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions src/site/markdown/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -67,7 +67,7 @@ LangGraph for Java. A library for building stateful, multi-agents applications w
<dependency>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-core-jdk8</artifactId>
<version>1.0-rc1</version>
<version>1.0-rc2</version>
</dependency>
```

Expand Down Expand Up @@ -240,7 +240,7 @@ It is available an **embed playground webapp** able to run a Langgraph4j workflo
<dependency>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-studio-jetty</artifactId>
<version>1.0-rc1</version>
<version>1.0-rc2</version>
<dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion studio-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.bsc.langgraph4j</groupId>
<artifactId>langgraph4j-parent</artifactId>
<version>1.0-20241024</version>
<version>1.0-rc2</version>
</parent>

<artifactId>langgraph4j-studio-jetty</artifactId>
Expand Down

0 comments on commit 604729f

Please sign in to comment.