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
…) (#2763)

(cherry picked from commit 07e52d9)

Signed-off-by: Tomoyuki Morita <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent c233ada commit d619455
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 d619455

Please sign in to comment.