Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ target/

# Gradle
.gradle
META-INF/

# Commands history
.cli_history
Expand Down
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Gradle properties for SQL CLI

# Uncomment to use local SQL project instead of published Maven artifacts
# This is useful for development when you need to make changes in both projects
# useLocalSql=true
28 changes: 28 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,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('../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"
}
Loading