Skip to content

Commit

Permalink
Exclude integ-test, doctest and download task when built offline (#2760)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 authored Jun 19, 2024
1 parent 7b40c2c commit 07e52d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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
8 changes: 6 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ rootProject.name = 'opensearch-sql'
include 'opensearch-sql-plugin'
project(':opensearch-sql-plugin').projectDir = file('plugin')
include 'ppl'
include 'integ-test'
include 'common'
include 'opensearch'
include 'core'
include 'protocol'
include 'doctest'
include 'legacy'
include 'sql'
include 'prometheus'
Expand All @@ -23,3 +21,9 @@ include 'datasources'
include 'spark'
include 'async-query-core'
include 'async-query'

// exclude integ-test/doctest in case of offline build since they need downloads
if (!gradle.startParameter.offline) {
include 'integ-test'
include 'doctest'
}

0 comments on commit 07e52d9

Please sign in to comment.