Skip to content

Commit

Permalink
feat : upgrade to java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed May 27, 2024
1 parent 8eb656d commit f9f3956
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

image: gitpod/workspace-java-17
image: gitpod/workspace-java-21

ports:
- port: 9200
Expand Down
2 changes: 1 addition & 1 deletion chatmodel-springai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<version>1.0.0-SNAPSHOT</version>

<properties>
<java.version>17</java.version>
<java.version>21</java.version>
<spring-ai.version>0.8.1</spring-ai.version>
<spotless.version>2.43.0</spotless.version>
</properties>
Expand Down
2 changes: 2 additions & 0 deletions chatmodel-springai/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
spring.application.name=chatmodel-springai

spring.threads.virtual.enabled=true

spring.ai.openai.api-key=demo
Expand Down
2 changes: 1 addition & 1 deletion embeddingstores/neo4j-springai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17</java.version>
<java.version>21</java.version>
<spring-ai.version>0.8.1</spring-ai.version>
<spotless.version>2.43.0</spotless.version>
</properties>
Expand Down
4 changes: 2 additions & 2 deletions embeddingstores/opensearch-langchain4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<version>1.0.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<langchain4j.version>0.31.0</langchain4j.version>
Expand Down
2 changes: 1 addition & 1 deletion embeddingstores/pgvector-langchain4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<version>1.0.0-SNAPSHOT</version>

<properties>
<java.version>17</java.version>
<java.version>21</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<langchain4j.version>0.31.0</langchain4j.version>
</properties>
Expand Down
4 changes: 2 additions & 2 deletions java-openai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>

<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions playground-langchain4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<langchain4j.version>0.31.0</langchain4j.version>
<tinylog.version>2.7.0</tinylog.version>
Expand Down
2 changes: 1 addition & 1 deletion rag/rag-langchain4j-AllMiniLmL6V2-llm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<description>Demo project for Spring Boot</description>

<properties>
<java.version>17</java.version>
<java.version>21</java.version>
<langchain4j.version>0.31.0</langchain4j.version>
<langchain4j.springboot.version>0.31.0</langchain4j.springboot.version>
<spotless.version>2.43.0</spotless.version>
Expand Down
2 changes: 1 addition & 1 deletion rag/rag-springai-ollama-llm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<description>Demo project for Spring AI</description>

<properties>
<java.version>17</java.version>
<java.version>21</java.version>
<spring-ai.version>1.0.0-SNAPSHOT</spring-ai.version>
<spotless.version>2.43.0</spotless.version>
</properties>
Expand Down
4 changes: 2 additions & 2 deletions rag/rag-springai-openai-llm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<description>Demo project for Spring AI</description>

<properties>
<java.version>17</java.version>
<java.version>21</java.version>
<spring-ai.version>0.8.1</spring-ai.version>
<spotless.version>2.43.0</spotless.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down

0 comments on commit f9f3956

Please sign in to comment.