Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maven modules depends on JDK (langchain4j#1979)
## Issue Simplify CI configuration ## Change - Use maven profile to activate project modules, depending on active JDK - Simplify CI configuration This pull request includes several updates to the CI workflows and the `pom.xml` file, primarily focusing on simplifying the Maven options and restructuring module definitions. The most important changes include replacing `included_modules` with `mvn_opts` in the workflow files and updating the `pom.xml` to conditionally include the `langchain4j-jlama` module based on the JDK version. ### CI Workflow Updates: * [`.github/workflows/main.yaml`](diffhunk://#diff-71cabc4177e41ea8f15a89eb65398fa8187739f68a2762706d84885cd8b2ddc3L37-R39): Replaced `included_modules` with `mvn_opts` to simplify the Maven command options. [[1]](diffhunk://#diff-71cabc4177e41ea8f15a89eb65398fa8187739f68a2762706d84885cd8b2ddc3L37-R39) [[2]](diffhunk://#diff-71cabc4177e41ea8f15a89eb65398fa8187739f68a2762706d84885cd8b2ddc3L62-R62) [[3]](diffhunk://#diff-71cabc4177e41ea8f15a89eb65398fa8187739f68a2762706d84885cd8b2ddc3L73-R73) * [`.github/workflows/nightly.yaml`](diffhunk://#diff-e79198339eb3fcc6974b6912e52526068eab3b7952ed67d03276479a235eb58eL18-R20): Made similar changes to replace `included_modules` with `mvn_opts` for consistency across workflows. [[1]](diffhunk://#diff-e79198339eb3fcc6974b6912e52526068eab3b7952ed67d03276479a235eb58eL18-R20) [[2]](diffhunk://#diff-e79198339eb3fcc6974b6912e52526068eab3b7952ed67d03276479a235eb58eL45-R51) ### `pom.xml` Updates: * [`pom.xml`](diffhunk://#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8L35): Removed the `langchain4j-jlama` module from the default module list and added it to a new profile activated only for JDK 21 and above. [[1]](diffhunk://#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8L35) [[2]](diffhunk://#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R175-R183) ## 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)
- Loading branch information