Skip to content

Update langchain4j to v1 (major) #3372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

solrbot
Copy link
Collaborator

@solrbot solrbot commented May 26, 2025

This PR contains the following updates:

Package Type Update Change
dev.langchain4j:langchain4j-open-ai (source) dependencies major 0.35.0 -> 1.0.1
dev.langchain4j:langchain4j-core (source) dependencies major 0.35.0 -> 1.0.1

Release Notes

langchain4j/langchain4j (dev.langchain4j:langchain4j-open-ai)

v1.0.1: and 1.0.1-beta6

Compare Source

What's Changed

Full Changelog: langchain4j/langchain4j@1.0.0...1.0.1

v1.0.0: and 1.0.0-beta5

Compare Source

Announcements

We are excited to announce the release of version 1.0.0 for the following artifacts:

  • langchain4j-core
  • langchain4j
  • langchain4j-http-client
  • langchain4j-http-client-jdk
  • langchain4j-open-ai
  • langchain4j-bom

The rest of the modules are released under the 1.0.0-beta5 version. We are currently finalizing the remaining updates and plan to release the next set of modules as rc1 in June.

The langchain4j-bom has been released with version 1.0.0 and includes the latest versions of all modules (many of which are at 1.0.0-beta5).

Thank you so much to everyone who contributed in one way or another - this would not have been possible without you! 🙏

Breaking Changes
What's Changed
New Contributors

Full Changelog: langchain4j/langchain4j@1.0.0-rc1...1.0.0

v0.36.2

Compare Source

What's Changed

v0.36.1

Compare Source

Fixes
What's Changed

Full Changelog: langchain4j/langchain4j@0.36.0...0.36.1

v0.36.0

Compare Source

Core Features/Updates
New Integrations
Notable Updates
Other Changes
New Contributors

Full Changelog: langchain4j/langchain4j@0.35.0...0.36.0


Configuration

📅 Schedule: Branch creation - "* * * * *" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot

@solrbot
Copy link
Collaborator Author

solrbot commented May 26, 2025

⚠️ Artifact update problem

Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: undefined
Command failed: ./gradlew resolveAndLockAll --write-locks

FAILURE: Build failed with an exception.

* Where:
Script '/tmp/renovate/repos/github/apache/solr/gradle/validation/dependencies.gradle' line: 101

* What went wrong:
Execution failed for task ':solr:modules:llm:resolveAndLockAll'.
> Could not resolve all files for configuration ':solr:modules:llm:jarValidation'.
   > Could not find dev.langchain4j:langchain4j-cohere:1.0.1.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/dev/langchain4j/langchain4j-cohere/1.0.1/langchain4j-cohere-1.0.1.pom
     Required by:
         project :solr:modules:llm
         project :solr:modules:llm > project :platform
   > Could not find dev.langchain4j:langchain4j-hugging-face:1.0.1.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/dev/langchain4j/langchain4j-hugging-face/1.0.1/langchain4j-hugging-face-1.0.1.pom
     Required by:
         project :solr:modules:llm
         project :solr:modules:llm > project :platform
   > Could not find dev.langchain4j:langchain4j-mistral-ai:1.0.1.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/dev/langchain4j/langchain4j-mistral-ai/1.0.1/langchain4j-mistral-ai-1.0.1.pom
     Required by:
         project :solr:modules:llm
         project :solr:modules:llm > project :platform

* Try:
> If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.

BUILD FAILED in 16s

File name: undefined
Command failed: ./gradlew updateLicenses

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':solr:modules:llm:collectJarInfos'.
> Could not resolve all dependencies for configuration ':solr:modules:llm:jarValidation'.
   > Did not resolve 'com.squareup.okhttp3:okhttp-sse:4.12.0' which is part of the dependency lock state
   > Did not resolve 'com.squareup.retrofit2:retrofit:2.9.0' which is part of the dependency lock state
   > Did not resolve 'org.jetbrains:annotations:26.0.2' which is part of the dependency lock state
   > Did not resolve 'dev.ai4j:openai4j:0.22.0' which is part of the dependency lock state
   > Did not resolve 'com.squareup.retrofit2:converter-jackson:2.9.0' which is part of the dependency lock state
   > Did not resolve 'org.jetbrains.kotlin:kotlin-stdlib-common:2.1.10' which is part of the dependency lock state
   > Resolved 'org.jspecify:jspecify:1.0.0' which is not part of the dependency lock state
   > Did not resolve 'com.squareup.okio:okio:3.6.0' which is part of the dependency lock state
   > Did not resolve 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.1.10' which is part of the dependency lock state
   > Did not resolve 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.1.10' which is part of the dependency lock state
   > Did not resolve 'dev.langchain4j:langchain4j-mistral-ai:0.35.0' which is part of the dependency lock state
   > Resolved 'dev.langchain4j:langchain4j-http-client-jdk:1.0.1' which is not part of the dependency lock state
   > Did not resolve 'com.squareup.okio:okio-jvm:3.6.0' which is part of the dependency lock state
   > Did not resolve 'dev.langchain4j:langchain4j-hugging-face:0.35.0' which is part of the dependency lock state
   > Did not resolve 'com.google.code.gson:gson:2.11.0' which is part of the dependency lock state
   > Resolved 'dev.langchain4j:langchain4j-http-client:1.0.1' which is not part of the dependency lock state
   > Did not resolve 'org.jetbrains.kotlin:kotlin-stdlib:2.1.10' which is part of the dependency lock state
   > Did not resolve 'com.squareup.okhttp3:okhttp:4.12.0' which is part of the dependency lock state
   > Did not resolve 'dev.langchain4j:langchain4j-cohere:0.35.0' which is part of the dependency lock state
   > Could not resolve dev.langchain4j:langchain4j-core:1.0.1.
     Required by:
         project :solr:modules:llm
         project :solr:modules:llm > project :platform
         project :solr:modules:llm > dev.langchain4j:langchain4j-open-ai:1.0.1
         project :solr:modules:llm > dev.langchain4j:langchain4j-open-ai:1.0.1 > dev.langchain4j:langchain4j-http-client:1.0.1
         project :solr:modules:llm > dev.langchain4j:langchain4j-open-ai:1.0.1 > dev.langchain4j:langchain4j-http-client-jdk:1.0.1
      > Cannot find a version of 'dev.langchain4j:langchain4j-core' that satisfies the version constraints:
           Dependency path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-core:1.0.1'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-core:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'org.apache:platform:10.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-core:1.0.1'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-open-ai:1.0.1' (runtime) --> 'dev.langchain4j:langchain4j-core:1.0.1'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-open-ai:1.0.1' (runtime) --> 'dev.langchain4j:langchain4j-http-client:1.0.1' (runtime) --> 'dev.langchain4j:langchain4j-core:1.0.1'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-open-ai:1.0.1' (runtime) --> 'dev.langchain4j:langchain4j-http-client-jdk:1.0.1' (runtime) --> 'dev.langchain4j:langchain4j-core:1.0.1'

   > Could not resolve dev.langchain4j:langchain4j-cohere:1.0.1.
     Required by:
         project :solr:modules:llm
         project :solr:modules:llm > project :platform
      > Cannot find a version of 'dev.langchain4j:langchain4j-cohere' that satisfies the version constraints:
           Dependency path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-cohere:1.0.1'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-cohere:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'org.apache:platform:10.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-cohere:1.0.1'

   > Could not resolve dev.langchain4j:langchain4j-hugging-face:1.0.1.
     Required by:
         project :solr:modules:llm
         project :solr:modules:llm > project :platform
      > Cannot find a version of 'dev.langchain4j:langchain4j-hugging-face' that satisfies the version constraints:
           Dependency path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-hugging-face:1.0.1'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-hugging-face:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'org.apache:platform:10.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-hugging-face:1.0.1'

   > Could not resolve dev.langchain4j:langchain4j-mistral-ai:1.0.1.
     Required by:
         project :solr:modules:llm
         project :solr:modules:llm > project :platform
      > Cannot find a version of 'dev.langchain4j:langchain4j-mistral-ai' that satisfies the version constraints:
           Dependency path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-mistral-ai:1.0.1'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-mistral-ai:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'org.apache:platform:10.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-mistral-ai:1.0.1'

   > Could not resolve dev.langchain4j:langchain4j-open-ai:1.0.1.
     Required by:
         project :solr:modules:llm
         project :solr:modules:llm > project :platform
      > Cannot find a version of 'dev.langchain4j:langchain4j-open-ai' that satisfies the version constraints:
           Dependency path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-open-ai:1.0.1'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'dev.langchain4j:langchain4j-open-ai:{strictly 0.35.0}' because of the following reason: dependency was locked to version '0.35.0'
           Constraint path 'org.apache.solr:llm:10.0.0-SNAPSHOT' --> 'org.apache:platform:10.0.0-SNAPSHOT' (runtimeElements) --> 'dev.langchain4j:langchain4j-open-ai:1.0.1'

> There are 5 more failures with identical causes.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.

BUILD FAILED in 15s

@github-actions github-actions bot added dependencies Dependency upgrades tool:build labels May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Dependency upgrades tool:build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant