Skip to content

Commit

Permalink
Exclude integ-test and download task when built offline
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 committed Jun 18, 2024
1 parent 7b40c2c commit f1b6bf7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions async-query-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ configurations {
}
}

// Make sure the downloadG4File task runs before the generateGrammarSource task
generateGrammarSource.dependsOn downloadG4Files
// skip download in case of offline build
if (!gradle.startParameter.offline) {
// Make sure the downloadG4File task runs before the generateGrammarSource task
generateGrammarSource.dependsOn downloadG4Files
}

dependencies {
antlr "org.antlr:antlr4:4.7.1"
Expand Down
5 changes: 4 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ rootProject.name = 'opensearch-sql'
include 'opensearch-sql-plugin'
project(':opensearch-sql-plugin').projectDir = file('plugin')
include 'ppl'
include 'integ-test'
// exclude integ-test in case of offline build
if (!gradle.startParameter.offline) {
include 'integ-test'
}
include 'common'
include 'opensearch'
include 'core'
Expand Down

0 comments on commit f1b6bf7

Please sign in to comment.