Commit Graph

58 Commits

Author SHA1 Message Date
github-actions[bot] a39f132b91 Update versions to 1.19.0-SNAPSHOT and 1.19.0-beta29-SNAPSHOT 2026-07-17 13:42:56 +00:00
github-actions[bot] 66ad5ee6d5 Release versions 1.18.0 and 1.18.0-beta28 2026-07-17 12:34:45 +00:00
Eunbin Son af99cec384
fix: Guard against null content type in GcsSource metadata (#5673)
## Issue
Closes #5672

## Change
`GcsSource` built its metadata by calling `metadata.put("contentType",
blob.getContentType())`. `Blob.getContentType()` is nullable, and core
`Metadata.put(String, String)` rejects null with an
`IllegalArgumentException`. Loading a valid, non-empty object without a
content type therefore failed: `loadDocument()` threw, and
`loadDocuments()` caught the exception and silently skipped the object.

This change skips the `contentType` key when `getContentType()` returns
null, so the key is absent rather than holding a meaningless `"null"`
string. The sibling `AzureBlobStorageSource` already guards its metadata
(via `String.valueOf`); this brings the GCS loader in line. Scope is
limited to the `contentType` line.

Added `GcsSourceTest` with a Mockito-mocked `Blob`: a regression case
(null content type builds successfully, key absent) and a positive case
(`text/plain` preserved).

## General checklist
- [X] There are no breaking changes (API, behaviour)
- [X] I have added unit and/or integration tests for my change
- [X] The tests cover both positive and negative cases
- [X] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [ ] I have manually run all the unit and integration tests in the core
and main modules, and they are all green
- [ ] I have added/updated the documentation
- [ ] I have added an example in the examples repo (only for "big"
features)
- [ ] I have added/updated Spring Boot starter(s) (if applicable)
2026-07-01 11:14:12 +02:00
github-actions[bot] 7d7c3349d7 Update versions to 1.18.0-SNAPSHOT and 1.18.0-beta28-SNAPSHOT 2026-06-26 14:49:40 +00:00
github-actions[bot] 207407aec9 Release versions 1.17.0 and 1.17.0-beta27 2026-06-26 13:13:06 +00:00
github-actions[bot] 01de41d641 Update versions to 1.17.0-SNAPSHOT and 1.17.0-beta27-SNAPSHOT 2026-06-06 06:46:38 +00:00
github-actions[bot] cd836845dd Release versions 1.16.0 and 1.16.0-beta26 2026-06-05 15:46:56 +00:00
github-actions[bot] 6185599e37 Update versions to 1.16.0-SNAPSHOT and 1.16.0-beta26-SNAPSHOT 2026-05-15 16:21:14 +00:00
github-actions[bot] d0e54aa006 Release versions 1.15.0 and 1.15.0-beta25 2026-05-15 15:55:12 +00:00
github-actions[bot] 628ac34c01 Update versions to 1.15.0-SNAPSHOT and 1.15.0-beta25-SNAPSHOT 2026-04-30 18:43:12 +00:00
github-actions[bot] 4917afa297 Release versions 1.14.0 and 1.14.0-beta24 2026-04-30 18:10:30 +00:00
github-actions[bot] 4798a89d66 Update versions to 1.14.0-SNAPSHOT and 1.14.0-beta24-SNAPSHOT 2026-04-09 14:41:27 +00:00
github-actions[bot] 759cd9a236 Release versions 1.13.0 and 1.13.0-beta23 2026-04-09 13:07:30 +00:00
Dmytro Liubarskyi e10abf04d0
Update versions to 1.13.0-SNAPSHOT and 1.13.0-beta23-SNAPSHOT (#4710)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-03-13 11:39:50 +01:00
Dmytro Liubarskyi c92ea033e4
Update versions to 1.13.0-SNAPSHOT and 1.13.0-beta22-SNAPSHOT (#4666)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-03-05 17:18:22 +01:00
Dmytro Liubarskyi 336b2accce
Update versions to 1.12.0-SNAPSHOT and 1.12.0-beta20-SNAPSHOT (#4537)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-04 14:27:44 +01:00
Eunbin Son c3db94b414
[BUG] Azure and GCS document loaders do not skip failed documents in loadDocuments() (#4327)
## Issue
Closes #4326

## Change
Added exception handling to skip failed documents in
`AzureBlobStorageDocumentLoader.loadDocuments()` and
`GoogleCloudStorageDocumentLoader.loadDocuments()`, matching the
behavior of `AmazonS3DocumentLoader` and `TencentCosDocumentLoader`.

- Added try-catch blocks to skip failed documents and log warnings
- Updated Javadoc to document skip behavior

## General checklist
- [X] There are no breaking changes (API, behaviour)
- [X] I have added unit and/or integration tests for my change
- [X] The tests cover both positive and negative cases
- [X] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [X] I have manually run all the unit and integration tests in the
[core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core)
and
[main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j)
modules, and they are all green
- [ ] I have added/updated the
[documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs)
- [ ] I have added an example in the [examples
repo](https://github.com/langchain4j/langchain4j-examples) (only for
"big" features)
- [ ] I have added/updated [Spring Boot
starter(s)](https://github.com/langchain4j/langchain4j-spring) (if
applicable)


## Checklist for adding new maven module
- [ ] I have added my new module in the root `pom.xml` and
`langchain4j-bom/pom.xml`


## Checklist for adding new embedding store integration
- [ ] I have added a `{NameOfIntegration}EmbeddingStoreIT` that extends
from either `EmbeddingStoreIT` or `EmbeddingStoreWithFilteringIT`
- [ ] I have added a `{NameOfIntegration}EmbeddingStoreRemovalIT` that
extends from `EmbeddingStoreWithRemovalIT`

## Checklist for changing existing embedding store integration
- [ ] I have manually verified that the
`{NameOfIntegration}EmbeddingStore` works correctly with the data
persisted using the latest released version of LangChain4j
2026-01-02 10:38:11 +01:00
Dmytro Liubarskyi 778be1b360
Update versions to 1.11.0-SNAPSHOT and 1.11.0-beta19-SNAPSHOT (#4285)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-24 15:38:05 +01:00
Dmytro Liubarskyi 25d3b3ec87 cleaned up test dependencies 2025-12-10 10:18:30 +01:00
Dmytro Liubarskyi 12c261cc61 ITs: added missing @EnabledIfEnvironmentVariable annotations 2025-12-08 12:58:36 +01:00
Dmytro Liubarskyi ca6097e35d
Update versions to 1.10.0-SNAPSHOT and 1.10.0-beta18-SNAPSHOT (#4152)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-28 12:21:30 +01:00
Dmytro Liubarskyi bc0801a4df
Update versions to 1.10.0-SNAPSHOT and 1.10.0-beta17-SNAPSHOT (#4140)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-26 17:38:36 +01:00
Dmytro Liubarskyi a473835133
Update versions to 1.9.0-SNAPSHOT and 1.9.0-beta16-SNAPSHOT (#3951)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-10-24 16:51:33 +02:00
Jiang Shan 8f71286a21
fix typo (#3824)
<!--
Thank you so much for your contribution!

Please fill in all the sections below.
Please open the PR as a draft initially. Once it is reviewed and
approved, we will ask you to add documentation and examples.
Please note that PRs with breaking changes or without tests will be
rejected.

Please note that PRs will be reviewed based on the priority of the
issues they address.
We ask for your patience. We are doing our best to review your PR as
quickly as possible.
Please refrain from pinging and asking when it will be reviewed. Thank
you for understanding!
-->

## Issue
<!-- Please specify the ID of the issue this PR is addressing. For
example: "Closes #1234" or "Fixes #1234" -->
Closes #

## Change
<!-- Please describe the changes you made. -->


## General checklist
<!-- Please double-check the following points and mark them like this:
[X] -->
- [ ] There are no breaking changes (API, behaviour)
- [ ] I have added unit and/or integration tests for my change
- [ ] The tests cover both positive and negative cases
- [ ] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [ ] I have manually run all the unit and integration tests in the
[core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core)
and
[main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j)
modules, and they are all green
<!-- Before adding documentation and example(s) (below), please wait
until the PR is reviewed and approved. -->
- [ ] I have added/updated the
[documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs)
- [ ] I have added an example in the [examples
repo](https://github.com/langchain4j/langchain4j-examples) (only for
"big" features)
- [ ] I have added/updated [Spring Boot
starter(s)](https://github.com/langchain4j/langchain4j-spring) (if
applicable)


## Checklist for adding new maven module
<!-- Please double-check the following points and mark them like this:
[X] -->
- [ ] I have added my new module in the root `pom.xml` and
`langchain4j-bom/pom.xml`


## Checklist for adding new embedding store integration
<!-- Please double-check the following points and mark them like this:
[X] -->
- [ ] I have added a `{NameOfIntegration}EmbeddingStoreIT` that extends
from either `EmbeddingStoreIT` or `EmbeddingStoreWithFilteringIT`
- [ ] I have added a `{NameOfIntegration}EmbeddingStoreRemovalIT` that
extends from `EmbeddingStoreWithRemovalIT`

## Checklist for changing existing embedding store integration
<!-- Please double-check the following points and mark them like this:
[X] -->
- [ ] I have manually verified that the
`{NameOfIntegration}EmbeddingStore` works correctly with the data
persisted using the latest released version of LangChain4j
2025-10-07 14:25:55 +02:00
Dmytro Liubarskyi 34632c06a2 nex dev iteration 2025-10-02 17:17:35 +02:00
Dmytro Liubarskyi 7add1a1b4e next dev iteration 2025-09-26 16:54:16 +02:00
Dmytro Liubarskyi afee79638b next dev iteration 2025-09-16 15:23:21 +02:00
Dmytro Liubarskyi 7cc34306db next dev iteration 2025-08-29 08:35:38 +02:00
Dmytro Liubarskyi 5b1b2e76d2 next dev iteration 2025-08-07 16:24:25 +02:00
Dmytro Liubarskyi 0a01b49951 next dev iteration 2025-07-29 17:50:28 +02:00
renovate[bot] 4adf968b09
Update dependency com.google.cloud:libraries-bom to v26.63.0 (#3340)
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
|
[com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom)
([source](https://redirect.github.com/googleapis/java-cloud-bom)) |
`26.60.0` -> `26.63.0` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:libraries-bom/26.63.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:libraries-bom/26.60.0/26.63.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom)
([source](https://redirect.github.com/googleapis/java-cloud-bom)) |
`26.62.0` -> `26.63.0` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:libraries-bom/26.63.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:libraries-bom/26.62.0/26.63.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>googleapis/java-cloud-bom
(com.google.cloud:libraries-bom)</summary>

###
[`v26.63.0`](https://redirect.github.com/googleapis/java-cloud-bom/blob/HEAD/CHANGELOG.md#26630-2025-07-01)

[Compare
Source](https://redirect.github.com/googleapis/java-cloud-bom/compare/v26.62.0...v26.63.0)

##### Dependencies

- update dependency com.google.cloud:first-party-dependencies to v3.50.0
([#&#8203;7082](https://redirect.github.com/googleapis/java-cloud-bom/issues/7082))
([8e7ce0d](8e7ce0dd38))
- update dependency com.google.cloud:gapic-libraries-bom to v1.60.0
([#&#8203;7086](https://redirect.github.com/googleapis/java-cloud-bom/issues/7086))
([ae7436a](ae7436ab66))
- update dependency com.google.cloud:gapic-libraries-bom to v1.61.0
([#&#8203;7094](https://redirect.github.com/googleapis/java-cloud-bom/issues/7094))
([9081c65](9081c65884))
- update dependency com.google.cloud:google-cloud-bigquery to v2.52.0
([#&#8203;7092](https://redirect.github.com/googleapis/java-cloud-bom/issues/7092))
([f28e534](f28e534f8e))
- update dependency com.google.cloud:google-cloud-bigquerystorage-bom to
v3.15.3
([#&#8203;7083](https://redirect.github.com/googleapis/java-cloud-bom/issues/7083))
([de0f6c8](de0f6c835c))
- update dependency com.google.cloud:google-cloud-bigtable-bom to
v2.61.0
([#&#8203;7100](https://redirect.github.com/googleapis/java-cloud-bom/issues/7100))
([75c2b33](75c2b33088))
- update dependency com.google.cloud:google-cloud-datastore-bom to
v2.29.2
([#&#8203;7081](https://redirect.github.com/googleapis/java-cloud-bom/issues/7081))
([82d0a08](82d0a08b2a))
- update dependency com.google.cloud:google-cloud-datastore-bom to
v2.30.0
([#&#8203;7095](https://redirect.github.com/googleapis/java-cloud-bom/issues/7095))
([2241586](2241586dc9))
- update dependency com.google.cloud:google-cloud-firestore-bom to
v3.31.7
([#&#8203;7087](https://redirect.github.com/googleapis/java-cloud-bom/issues/7087))
([b6eb671](b6eb6715b4))
- update dependency com.google.cloud:google-cloud-logging-bom to v3.22.6
([#&#8203;7088](https://redirect.github.com/googleapis/java-cloud-bom/issues/7088))
([704fcb9](704fcb9247))
- update dependency com.google.cloud:google-cloud-logging-logback to
v0.132.10-alpha
([#&#8203;7089](https://redirect.github.com/googleapis/java-cloud-bom/issues/7089))
([620c2f2](620c2f2be3))
- update dependency com.google.cloud:google-cloud-nio to v0.127.38
([#&#8203;7099](https://redirect.github.com/googleapis/java-cloud-bom/issues/7099))
([4648ee2](4648ee2a94))
- update dependency com.google.cloud:google-cloud-pubsub-bom to v1.140.2
([#&#8203;7090](https://redirect.github.com/googleapis/java-cloud-bom/issues/7090))
([5f367d6](5f367d6905))
- update dependency com.google.cloud:google-cloud-pubsublite-bom to
v1.15.10
([#&#8203;7091](https://redirect.github.com/googleapis/java-cloud-bom/issues/7091))
([3774a13](3774a13827))
- update dependency com.google.cloud:google-cloud-spanner-bom to v6.96.0
([#&#8203;7096](https://redirect.github.com/googleapis/java-cloud-bom/issues/7096))
([1b40232](1b402327fb))
- update dependency com.google.cloud:google-cloud-spanner-bom to v6.96.1
([#&#8203;7101](https://redirect.github.com/googleapis/java-cloud-bom/issues/7101))
([5a236f4](5a236f4ced))
- update dependency com.google.cloud:google-cloud-spanner-jdbc to
v2.30.5
([#&#8203;7085](https://redirect.github.com/googleapis/java-cloud-bom/issues/7085))
([f2a806d](f2a806d446))
- update dependency com.google.cloud:google-cloud-spanner-jdbc to
v2.31.0
([#&#8203;7097](https://redirect.github.com/googleapis/java-cloud-bom/issues/7097))
([f8788e8](f8788e86fe))
- update dependency com.google.cloud:google-cloud-spanner-jdbc to
v2.31.1
([#&#8203;7103](https://redirect.github.com/googleapis/java-cloud-bom/issues/7103))
([87a1e1b](87a1e1b657))
- update dependency com.google.cloud:google-cloud-storage-bom to v2.53.1
([#&#8203;7084](https://redirect.github.com/googleapis/java-cloud-bom/issues/7084))
([6769d97](6769d97770))
- update dependency com.google.cloud:google-cloud-storage-bom to v2.53.2
([#&#8203;7093](https://redirect.github.com/googleapis/java-cloud-bom/issues/7093))
([cc878c2](cc878c2522))
- update dependency com.google.cloud.tools:dependencies to v1.5.15
([#&#8203;7071](https://redirect.github.com/googleapis/java-cloud-bom/issues/7071))
([92b02e6](92b02e6192))
- update dependency com.google.cloud.tools:dependencies-parent to
v1.5.15
([#&#8203;7072](https://redirect.github.com/googleapis/java-cloud-bom/issues/7072))
([49b6d34](49b6d343f7))

###
[`v26.62.0`](https://redirect.github.com/googleapis/java-cloud-bom/blob/HEAD/CHANGELOG.md#26620-2025-06-10)

##### Dependencies

- update dependency com.google.cloud:first-party-dependencies to v3.49.0
([#&#8203;7057](https://redirect.github.com/googleapis/java-cloud-bom/issues/7057))
([640aca3](640aca31c2))
- update dependency com.google.cloud:gapic-libraries-bom to v1.58.0
([#&#8203;7068](https://redirect.github.com/googleapis/java-cloud-bom/issues/7068))
([7902ff0](7902ff0c88))
- update dependency com.google.cloud:google-cloud-bigquery to v2.51.0
([#&#8203;7073](https://redirect.github.com/googleapis/java-cloud-bom/issues/7073))
([dce1f2a](dce1f2aa85))
- update dependency com.google.cloud:google-cloud-bigquerystorage-bom to
v3.15.0
([#&#8203;7063](https://redirect.github.com/googleapis/java-cloud-bom/issues/7063))
([395d4fb](395d4fb39b))
- update dependency com.google.cloud:google-cloud-bigtable-bom to
v2.60.0
([#&#8203;7069](https://redirect.github.com/googleapis/java-cloud-bom/issues/7069))
([d691ec7](d691ec7281))
- update dependency com.google.cloud:google-cloud-datastore-bom to
v2.29.1
([#&#8203;7074](https://redirect.github.com/googleapis/java-cloud-bom/issues/7074))
([479df4c](479df4c9c3))
- update dependency com.google.cloud:google-cloud-firestore-bom to
v3.31.6
([#&#8203;7056](https://redirect.github.com/googleapis/java-cloud-bom/issues/7056))
([95ec51c](95ec51cf79))
- update dependency com.google.cloud:google-cloud-logging-bom to v3.22.5
([#&#8203;7066](https://redirect.github.com/googleapis/java-cloud-bom/issues/7066))
([d5ece55](d5ece55fba))
- update dependency com.google.cloud:google-cloud-logging-logback to
v0.132.9-alpha
([#&#8203;7070](https://redirect.github.com/googleapis/java-cloud-bom/issues/7070))
([ee56a61](ee56a61f48))
- update dependency com.google.cloud:google-cloud-nio to v0.127.37
([#&#8203;7062](https://redirect.github.com/googleapis/java-cloud-bom/issues/7062))
([b37ec3b](b37ec3b59e))
- update dependency com.google.cloud:google-cloud-pubsub-bom to v1.140.1
([#&#8203;7060](https://redirect.github.com/googleapis/java-cloud-bom/issues/7060))
([3977d26](3977d2613d))
- update dependency com.google.cloud:google-cloud-pubsublite-bom to
v1.15.9
([#&#8203;7067](https://redirect.github.com/googleapis/java-cloud-bom/issues/7067))
([20a2c66](20a2c66f64))
- update dependency com.google.cloud:google-cloud-spanner-bom to v6.95.1
([#&#8203;7075](https://redirect.github.com/googleapis/java-cloud-bom/issues/7075))
([046443d](046443d735))
- update dependency com.google.cloud:google-cloud-spanner-jdbc to
v2.30.4
([#&#8203;7076](https://redirect.github.com/googleapis/java-cloud-bom/issues/7076))
([cff29a9](cff29a9da7))
- update dependency com.google.cloud:google-cloud-storage-bom to v2.53.0
([#&#8203;7061](https://redirect.github.com/googleapis/java-cloud-bom/issues/7061))
([37f11e3](37f11e30c9))
- Upgrade Protobuf-Java to v3.25.8
([#&#8203;7058](https://redirect.github.com/googleapis/java-cloud-bom/issues/7058))
([bd71298](bd71298ffb))

###
[`v26.61.0`](https://redirect.github.com/googleapis/java-cloud-bom/blob/HEAD/CHANGELOG.md#26610-2025-05-22)

[Compare
Source](https://redirect.github.com/googleapis/java-cloud-bom/compare/v26.60.0...v26.61.0)

##### Dependencies

- update dependency com.google.cloud:first-party-dependencies to v3.48.0
([#&#8203;7038](https://redirect.github.com/googleapis/java-cloud-bom/issues/7038))
([604b292](604b2925ba))
- update dependency com.google.cloud:gapic-libraries-bom to v1.57.0
([#&#8203;7040](https://redirect.github.com/googleapis/java-cloud-bom/issues/7040))
([39c2ffd](39c2ffd586))
- update dependency com.google.cloud:google-cloud-bigquery to v2.50.1
([#&#8203;7044](https://redirect.github.com/googleapis/java-cloud-bom/issues/7044))
([59185a6](59185a6ac8))
- update dependency com.google.cloud:google-cloud-bigquerystorage-bom to
v3.14.1
([#&#8203;7041](https://redirect.github.com/googleapis/java-cloud-bom/issues/7041))
([da9e434](da9e434873))
- update dependency com.google.cloud:google-cloud-bigtable-bom to
v2.59.0
([#&#8203;7043](https://redirect.github.com/googleapis/java-cloud-bom/issues/7043))
([2b92099](2b9209944c))
- update dependency com.google.cloud:google-cloud-datastore-bom to
v2.28.2
([#&#8203;7045](https://redirect.github.com/googleapis/java-cloud-bom/issues/7045))
([d7d9253](d7d925386b))
- update dependency com.google.cloud:google-cloud-firestore-bom to
v3.31.4
([#&#8203;7039](https://redirect.github.com/googleapis/java-cloud-bom/issues/7039))
([16f206a](16f206a1a5))
- update dependency com.google.cloud:google-cloud-logging-bom to v3.22.4
([#&#8203;7046](https://redirect.github.com/googleapis/java-cloud-bom/issues/7046))
([86097e4](86097e41e4))
- update dependency com.google.cloud:google-cloud-logging-logback to
v0.132.8-alpha
([#&#8203;7050](https://redirect.github.com/googleapis/java-cloud-bom/issues/7050))
([b138835](b1388357ae))
- update dependency com.google.cloud:google-cloud-nio to v0.127.36
([#&#8203;7047](https://redirect.github.com/googleapis/java-cloud-bom/issues/7047))
([84fe21c](84fe21c090))
- update dependency com.google.cloud:google-cloud-pubsub-bom to v1.139.4
([#&#8203;7042](https://redirect.github.com/googleapis/java-cloud-bom/issues/7042))
([8b7b466](8b7b466ad7))
- update dependency com.google.cloud:google-cloud-pubsublite-bom to
v1.15.8
([#&#8203;7048](https://redirect.github.com/googleapis/java-cloud-bom/issues/7048))
([61fa514](61fa5147f6))
- update dependency com.google.cloud:google-cloud-spanner-bom to v6.94.0
([#&#8203;7051](https://redirect.github.com/googleapis/java-cloud-bom/issues/7051))
([9327276](9327276b9b))
- update dependency com.google.cloud:google-cloud-spanner-jdbc to
v2.30.2
([#&#8203;7052](https://redirect.github.com/googleapis/java-cloud-bom/issues/7052))
([fa7eff7](fa7eff723b))
- update dependency com.google.cloud:google-cloud-storage-bom to v2.52.3
([#&#8203;7049](https://redirect.github.com/googleapis/java-cloud-bom/issues/7049))
([0336c8d](0336c8d07f))

</details>

---

### Configuration

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

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

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

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

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/langchain4j/langchain4j).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-25 16:14:44 +02:00
Tim te Beek ac3541c024
Apply AssertJ best practices as of July 2025 (#3398)
Hi! Hope these improvements are still appreciated; figured have you all
catch up to the latest version before enforcing that on PRs.

## Issue
- Continues https://github.com/langchain4j/langchain4j/pull/2561

## Change
Applied `mod run . --recipe AssertJ`, using
https://github.com/openrewrite/rewrite-testing-frameworks/releases/tag/v3.14.1

## General checklist
<!-- Please double-check the following points and mark them like this:
[X] -->
- [x] There are no breaking changes
- [x] I have added unit and/or integration tests for my change
- [x] The tests cover both positive and negative cases
- [ ] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [x] I have manually run all the unit and integration tests in the
[core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core)
and
[main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j)
modules, and they are all green

---------

Co-authored-by: Dmytro Liubarskyi <ljubarskij@gmail.com>
2025-07-25 14:26:36 +02:00
Dmytro Liubarskyi 39a504a83e Updated to the next development version 2025-06-18 19:36:52 +02:00
Brian Benz db21c4d4c3
Update protobuf (#3223)
<!--
Thank you so much for your contribution!

Please fill in all the sections below.
Please open the PR as a draft initially. Once it is reviewed and
approved, we will ask you to add documentation and examples.
Please note that PRs with breaking changes or without tests will be
rejected.

Please note that PRs will be reviewed based on the priority of the
issues they address.
We ask for your patience. We are doing our best to review your PR as
quickly as possible.
Please refrain from pinging and asking when it will be reviewed. Thank
you for understanding!
-->

## Issue
<!-- Please specify the ID of the issue this PR is addressing. For
example: "Closes #1234" or "Fixes #1234" -->
Closes # [Please add issue number if applicable, or remove this line if
no specific issue]

## Change
<!-- Please describe the changes you made. -->
Updated the pom.xml configuration for the Google Cloud Storage document
loader module.

- Update dependency management for Google Cloud libraries BOM to version
26.62.0, which updated Protobuf via a transitive dependency.

## General checklist
<!-- Please double-check the following points and mark them like this:
[X] -->
- [X] There are no breaking changes
- [ ] I have added unit and/or integration tests for my change
- [ ] The tests cover both positive and negative cases
- [X] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [X] I have manually run all the unit and integration tests in the
[core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core)
and
[main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j)
modules, and they are all green
<!-- Before adding documentation and example(s) (below), please wait
until the PR is reviewed and approved. -->
- [ ] I have added/updated the
[documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs)
- [ ] I have added an example in the [examples
repo](https://github.com/langchain4j/langchain4j-examples) (only for
"big" features)
- [ ] I have added/updated [Spring Boot
starter(s)](https://github.com/langchain4j/langchain4j-spring) (if
applicable)

## Checklist for adding new maven module
<!-- Please double-check the following points and mark them like this:
[X] -->
- [ ] I have added my new module in the root `pom.xml` and
`langchain4j-bom/pom.xml`

## Checklist for adding new embedding store integration
<!-- Please double-check the following points and mark them like this:
[X] -->
- [ ] I have added a `{NameOfIntegration}EmbeddingStoreIT` that extends
from either `EmbeddingStoreIT` or `EmbeddingStoreWithFilteringIT`
- [ ] I have added a `{NameOfIntegration}EmbeddingStoreRemovalIT` that
extends from `EmbeddingStoreWithRemovalIT`

## Checklist for changing existing embedding store integration
<!-- Please double-check the following points and mark them like this:
[X] -->
- [ ] I have manually verified that the
`{NameOfIntegration}EmbeddingStore` works correctly with the data
persisted using the latest released version of LangChain4j
2025-06-17 14:47:02 +02:00
Dmytro Liubarskyi 3fb258b009 - Updated to the next dev version
- Release to Maven central portal instead of s01
2025-05-20 15:55:12 +02:00
Dmytro Liubarskyi a5313ffc0e
Added maven-flatten-plugin, cleaned up POMs (#2964)
## Change
- Added `maven-flatten-plugin` to `langchain4j-parent` and
`langchain4j-bom`
- Removed integration-specific dependencies from `langchain4j-parent`'s
`dependencyManagement` section and moved them to the modules where these
dependencies are used
- Explicitly added missing implicit dependencies
- Removed redundant `<maven.compiler.release>` for cassandra, infinispan
and opensearch modules
- Removed redundant license declarations and outdated properties


## General checklist
- [ ] There are no breaking changes
- [ ] I have added unit and/or integration tests for my change
- [ ] The tests cover both positive and negative cases
- [x] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [x] I have manually run all the unit and integration tests in the
[core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core)
and
[main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j)
modules, and they are all green
- [ ] I have added/updated the
[documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs)
- [ ] I have added an example in the [examples
repo](https://github.com/langchain4j/langchain4j-examples) (only for
"big" features)
- [ ] I have added/updated [Spring Boot
starter(s)](https://github.com/langchain4j/langchain4j-spring) (if
applicable)
2025-05-08 17:55:51 +02:00
Dmytro Liubarskyi 3ab9218386 Updated version to 1.0.0-beta4-SNAPSHOT 2025-04-14 11:19:37 +02:00
Dmytro Liubarskyi 6ed38d4362
Release 1.0.0-beta3 (#2853) 2025-04-11 15:32:05 +02:00
Dmytro Liubarskyi a2f8e7f40a Update version to 1.0.0-beta3-SNAPSHOT 2025-03-14 10:00:39 +01:00
Dmytro Liubarskyi 2fcfa357ef
Release 1.0.0-beta2 (#2689) 2025-03-13 15:03:17 +01:00
Konstantin Pavlov ed08a0b8d9
Streamline dependencies (#2639)
## Issue

Streamline maven dependencies

Should fix [this
issue](https://github.com/langchain4j/langchain4j/actions/runs/13666001227/job/38207360909?pr=2640#step:5:16630)
```
2025/03/05 00:52:59,050 3922 [INFO  ] [main] netty.implementation.NettyUtility - {"az.sdk.message":"The following Netty versions were found on the classpath and have a mismatch with the versions used by azure-core-http-netty. If your application runs without issue this message can be ignored, otherwise please align the Netty versions used in your application. For more information, see https://aka.ms/azsdk/java/dependency/troubleshoot.","azure-netty-version":"4.1.118.Final","azure-netty-native-version":"2.0.70.Final","classpath-netty-version-io.netty:netty-common":"4.1.115.Final","classpath-netty-version-io.netty:netty-handler":"4.1.110.Final","classpath-netty-version-io.netty:netty-handler-proxy":"4.1.110.Final","classpath-netty-version-io.netty:netty-buffer":"4.1.110.Final","classpath-netty-version-io.netty:netty-codec":"4.1.110.Final","classpath-netty-version-io.netty:netty-codec-http":"4.1.110.Final","classpath-netty-version-io.netty:netty-codec-http2":"4.1.110.Final","classpath-netty-version-io.netty:netty-transport-native-unix-common":"4.1.110.Final","classpath-netty-version-io.netty:netty-transport-native-epoll":"4.1.110.Final","classpath-netty-version-io.netty:netty-transport-native-kqueue":"4.1.118.Final","classpath-native-netty-version-io.netty:netty-tcnative-boringssl-static":"2.0.70.Final"}
```

## Change

This pull request includes the following changes to improve project
dependency management:

- Removed unnecessary and redundant Netty dependencies and exclusions.
- Updated and reorganized dependency versions for consistency, including
new BOM imports for Azure SDK, Netty, and Reactor.
- Eliminated AWS SDK v1 dependencies, transitioning to
`software.amazon.awssdk` BOM for better compatibility and reduced
clutter.
- Removed redundant test dependencies like `assertj-core` and `mockito`
across modules, referring to the parent POM.
- Adjusted `kotlinx-coroutines-test` to use JVM-specific artifact and
standardized dependency version variables.
- Refined POM XML formatting for consistency and clarity (`mvn
spotless:apply`)


## General checklist
<!-- Please double-check the following points and mark them like this:
[X] -->
- [ ] There are no breaking changes
- [ ] I have added unit and/or integration tests for my change
- [ ] The tests cover both positive and negative cases
- [ ] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [ ] I have manually run all the unit and integration tests in the
[core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core)
and
[main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j)
modules, and they are all green
<!-- Before adding documentation and example(s) (below), please wait
until the PR is reviewed and approved. -->
- [ ] I have added/updated the
[documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs)
- [ ] I have added an example in the [examples
repo](https://github.com/langchain4j/langchain4j-examples) (only for
"big" features)
- [ ] I have added/updated [Spring Boot
starter(s)](https://github.com/langchain4j/langchain4j-spring) (if
applicable)


## Checklist for adding new maven module
<!-- Please double-check the following points and mark them like this:
[X] -->
- [ ] I have added my new module in the root `pom.xml` and
`langchain4j-bom/pom.xml`


## Checklist for adding new embedding store integration
<!-- Please double-check the following points and mark them like this:
[X] -->
- [ ] I have added a `{NameOfIntegration}EmbeddingStoreIT` that extends
from either `EmbeddingStoreIT` or `EmbeddingStoreWithFilteringIT`
- [ ] I have added a `{NameOfIntegration}EmbeddingStoreRemovalIT` that
extends from `EmbeddingStoreWithRemovalIT`

## Checklist for changing existing embedding store integration
<!-- Please double-check the following points and mark them like this:
[X] -->
- [ ] I have manually verified that the
`{NameOfIntegration}EmbeddingStore` works correctly with the data
persisted using the latest released version of LangChain4j

---------

Co-authored-by: kpavlov <{ID}+{username}@users.noreply.github.com>
Co-authored-by: Dmytro Liubarskyi <ljubarskij@gmail.com>
2025-03-11 09:57:05 +01:00
Tim te Beek 86afe2698e
Apply testing best practices to the project and future pull requests (#2561)
## Issue
As discussed with @dliubarskyi on
-
https://github.com/langchain4j/langchain4j/pull/2437#discussion_r1928261580

## Change
Ran a trio of OpenRewrite recipes to improve the tests here:
1.
[TestsShouldNotBePublic](https://docs.openrewrite.org/recipes/java/testing/cleanup/testsshouldnotbepublic)
2.
[RemoveTestPrefix](https://docs.openrewrite.org/recipes/java/testing/cleanup/removetestprefix)
3.
[Assertj](https://docs.openrewrite.org/recipes/java/testing/assertj/assertj-best-practices)

This was followed by some light touch ups, and applying Spotless to any
changed files.
I've also added the recipes to those enforced on future PRs, and applied
minor fixes to that workflow.

Already ran the tests on a fork PR, to verify the integration
- https://github.com/timtebeek/langchain4j/pull/1

## General checklist
- [x] There are no breaking changes
- [x] I have added unit and/or integration tests for my change
- [x] The tests cover both positive and negative cases
- [x] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [x] I have manually run all the unit and integration tests in the
[core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core)
and
[main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j)
modules, and they are all green
<!-- Before adding documentation and example(s) (below), please wait
until the PR is reviewed and approved. -->
- [ ] I have added/updated the
[documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs)
- [ ] I have added an example in the [examples
repo](https://github.com/langchain4j/langchain4j-examples) (only for
"big" features)
- [ ] I have added/updated [Spring Boot
starter(s)](https://github.com/langchain4j/langchain4j-spring) (if
applicable)
2025-02-17 11:24:24 +01:00
Dmytro Liubarskyi 0e5b1ece9c Updated version to 1.0.0-beta2-SNAPSHOT 2025-02-11 15:12:24 +01:00
Dmytro Liubarskyi bf4d9a200f
Release 1.0.0-beta1 (#2509) 2025-02-05 16:15:48 +01:00
LangChain4j e62db38df0 Update version to 1.0.0-alpha2-SNAPSHOT 2024-12-23 07:56:37 +01:00
LangChain4j 88adf9f1cb
Release 1.0.0-alpha1 (#2326) 2024-12-22 17:51:40 +01:00
Konstantin Pavlov 5706566222
#2109 Add Spotless Maven Plugin (#2153)
## Issue
Adds format consistency check for changed files. Closes #2109 

## Change

- Add [Spotless Maven plugin](https://github.com/diffplug/spotless) for
code java (eclipse java format) and pom.xml formatting
- Added the `<project.root.dir>` property across multiple POM files to
standardize the directory structure reference. This ensures consistent
project configurations and reduces redundancy in defining the root
project directory. Adjusted existing XML formatting minimally to
accommodate the new property integration.
- Cleanup duplicate settings in pgvector module
- Updated pom.xml files were reformatted according to
[defaults](https://github.com/diffplug/spotless/tree/main/plugin-maven#sortpom)
+ 4 spaces
- Adding linting and formatting commands to the `Makefile`, updating the
`pom.xml` files for better project configuration, and enhancing the
`CONTRIBUTING.md` guidelines.

## General checklist
- [x] There are no breaking changes
- [ ] I have added unit and integration tests for my change
- [ ] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [ ] I have manually run all the unit and integration tests in the
[core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core)
and
[main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j)
modules, and they are all green
- [ ] I have added/updated the
[documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs)
- [ ] I have added an example in the [examples
repo](https://github.com/langchain4j/langchain4j-examples) (only for
"big" features)
- [ ] I have added/updated [Spring Boot
starter(s)](https://github.com/langchain4j/langchain4j-spring) (if
applicable)
2024-12-03 16:58:51 +01:00
LangChain4j 0058c350b4 changed version to 0.37.0-SNAPSHOT 2024-11-19 16:54:25 +01:00
LangChain4j 8a1d755196
Release 0.36.1 (#2149) 2024-11-19 16:26:52 +01:00
LangChain4j 481426ffb4 change version to 0.37.0-SNAPSHOT 2024-11-13 17:14:47 +01:00