/* * Copyright 2023 Conductor authors *

* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at *

* http://www.apache.org/licenses/LICENSE-2.0 *

* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ // Contains overrides for Spring Boot Dependency Management plugin // Dependency version override properties can be found at https://docs.spring.io/spring-boot/docs/3.3.11/reference/htmlsingle/#appendix.dependency-versions.properties // Conductor's default is ES6, but SB brings in ES7 ext['elasticsearch.version'] = revElasticSearch7 // When building with ES8 persistence, override Spring Boot's managed Elasticsearch versions. // Spring Boot 3.3.x manages `org.elasticsearch.client:elasticsearch-rest-client` via // `elasticsearch.version` and `co.elastic.clients:elasticsearch-java` via // `elasticsearch-client.version`. def indexingBackend = findProperty('indexingBackend') ?: 'elasticsearch' if (indexingBackend == 'elasticsearch8' || indexingBackend == 'es8') { ext['elasticsearch.version'] = revElasticSearch8 ext['elasticsearch-client.version'] = revElasticSearch8 } // SB brings groovy 3.0.x which is not compatible with Spock ext['groovy.version'] = revGroovy // Keep Testcontainers aligned across modules instead of Spring Boot BOM defaults. ext['testcontainers.version'] = revTestContainer // Prevent Spring Boot BOM from downgrading Jedis. Modules that need jedis depend on // conductor-redis-api (which declares jedis as 'api'), and without this override the // dependency-management plugin would resolve the BOM version instead of 6.0.0. ext['jedis.version'] = revJedis