forked from conductor-oss/conductor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspringboot-bom-overrides.gradle
More file actions
39 lines (33 loc) · 1.96 KB
/
springboot-bom-overrides.gradle
File metadata and controls
39 lines (33 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Copyright 2023 Conductor authors
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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