-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathsettings.gradle
More file actions
28 lines (25 loc) · 1.37 KB
/
settings.gradle
File metadata and controls
28 lines (25 loc) · 1.37 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
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
rootProject.name = 'opensearch-sql-cli'
// Optionally include the local SQL project as a composite build
// This allows you to develop against local changes in the sql project
// Enable by passing -PuseLocalSql=true or adding useLocalSql=true to gradle.properties
if (settings.hasProperty('useLocalSql') && settings.useLocalSql == 'true') {
println "Using local SQL project for unified-query dependencies"
includeBuild('./remote/sql') {
dependencySubstitution {
// Substitute the Maven artifacts with local project modules
substitute module('org.opensearch.query:unified-query-common') using project(':common')
substitute module('org.opensearch.query:unified-query-core') using project(':core')
substitute module('org.opensearch.query:unified-query-opensearch') using project(':opensearch')
substitute module('org.opensearch.query:unified-query-ppl') using project(':ppl')
substitute module('org.opensearch.query:unified-query-sql') using project(':sql')
substitute module('org.opensearch.query:unified-query-protocol') using project(':protocol')
}
}
} else {
println "Using published Maven artifacts for unified-query dependencies"
println "To use local SQL project, run with -PuseLocalSql=true"
}