Skip to content

Commit

Permalink
Document command to only build core Airbyte systems. (#2351)
Browse files Browse the repository at this point in the history
  • Loading branch information
davinchia committed Mar 9, 2021
1 parent 59f6c6d commit 80984d0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.idea
*.iml
build
out
.DS_Store
data
.dockerversions
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def createSpotlessTarget = { pattern ->
'tools'
]

if(System.getenv().containsKey("CORE_ONLY")) {
if (System.getenv().containsKey("CORE_ONLY")) {
excludes.add("airbyte-integrations/connectors")
}

Expand Down
7 changes: 6 additions & 1 deletion docs/contributing-to-airbyte/developing-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ To compile the code and run unit tests:

This will build all the code and run all the unit tests.

`./gradle build` creates all the necessary artifacts \(Webapp, Jars and Docker images\) so that you can run Airbyte locally.
`./gradlew build` creates all the necessary artifacts \(Webapp, Jars and Docker images\) so that you can run Airbyte locally. Since this builds everything, it can take some time.

To compile and build just the core systems:
```bash
CORE_ONLY=1 ./gradlew build
```

{% hint style="info" %}
On Mac, if you run into an error while compiling openssl \(this happens when running pip install\), you may need to explicitly add these flags to your bash profile so that the C compiler can find the appropriate libraries.
Expand Down
6 changes: 3 additions & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ gradleEnterprise {
}
}

import groovy.io.FileType
import java.nio.file.Files

rootProject.name = 'airbyte'

include ':airbyte-analytics'
Expand Down Expand Up @@ -49,6 +46,7 @@ include ':airbyte-test-utils'
include ':tools:code-generator'

if(!System.getenv().containsKey("CORE_ONLY")) {
println "Building all of Airbyte."
// include all connector projects
def integrationsPath = rootDir.toPath().resolve('airbyte-integrations/connectors')
println integrationsPath
Expand All @@ -59,4 +57,6 @@ if(!System.getenv().containsKey("CORE_ONLY")) {
include ":airbyte-integrations:connectors:${dir.getFileName()}"
}
}
} else {
println "Building Airbyte Core."
}

0 comments on commit 80984d0

Please sign in to comment.