Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This diff introduces a property-based versioning approach for the Lan…
…gchain4j dependencies in a Gradle build. Let's break down the changes: * **`api/gradle.properties`**: A new property `langchain4j.version` is defined and set to `0.36.0`. This centralizes the version number, making updates easier. * **`api/build.gradle.kts`**: All Langchain4j dependency declarations now use the `langchain4j.version` property via `${properties["langchain4j.version"]}`. This replaces the hardcoded version numbers. This change affects multiple Langchain4j modules, including `easy-rag`, `pgvector`, various document parsers, web search engines, Hugging Face integration, Spring Boot starters, and test dependencies. The commented-out dependencies also adopt this approach. **Benefits of this Change:** * **Single Source of Truth:** Managing the Langchain4j version in one place simplifies updates and ensures consistency across all dependencies. * **Easier Upgrades:** Changing the version requires modifying only the `gradle.properties` file. * **Maintainability:** The build script is cleaner and easier to understand. This is a standard and recommended practice for dependency management in Gradle. It promotes maintainability and reduces the risk of errors associated with manual version updates across multiple locations.
- Loading branch information