-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gradle: create a separate sub build for all connectors #11833
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,14 +22,14 @@ sourceControl { | |
|
||
rootProject.name = 'airbyte' | ||
|
||
// SUB_BUILD is an enum of <blank>, PLATFORM, CONNECTORS_BASE, OCTAVIA_CLI. Blank is equivalent to all. | ||
// SUB_BUILD is an enum of <blank>, PLATFORM, CONNECTORS_BASE, ALL_CONNECTORS and OCTAVIA_CLI. Blank is equivalent to all. | ||
if (!System.getenv().containsKey("SUB_BUILD")) { | ||
println("Building all of Airbyte.") | ||
} else { | ||
def subBuild = System.getenv().get("SUB_BUILD") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now that this is getting used in more places, it might be nice to move it up a level in visibility, so the below doesn't have to repeat itself much. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please clarify? This sub-build is only defined in this settings file and is already at top level of the file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I meant you could have move the variable definition |
||
println("Building Airbyte Sub Build: " + subBuild) | ||
if (subBuild != "PLATFORM" && subBuild != "CONNECTORS_BASE" && subBuild != "OCTAVIA_CLI") { | ||
throw new IllegalArgumentException(String.format("%s is invalid. Must be unset or PLATFORM or CONNECTORS_BASE or OCTAVIA_CLI", subBuild)) | ||
if (subBuild != "PLATFORM" && subBuild != "CONNECTORS_BASE" && subBuild != "ALL_CONNECTORS" && subBuild != "OCTAVIA_CLI") { | ||
throw new IllegalArgumentException(String.format("%s is invalid. Must be unset or PLATFORM or CONNECTORS_BASE, ALL_CONNECTORS or OCTAVIA_CLI", subBuild)) | ||
} | ||
} | ||
|
||
|
@@ -76,7 +76,7 @@ if (!System.getenv().containsKey("SUB_BUILD") || System.getenv().get("SUB_BUILD" | |
} | ||
|
||
// connectors base | ||
if (!System.getenv().containsKey("SUB_BUILD") || System.getenv().get("SUB_BUILD") == "CONNECTORS_BASE") { | ||
if (!System.getenv().containsKey("SUB_BUILD") || System.getenv().get("SUB_BUILD") == "CONNECTORS_BASE" || System.getenv().get("SUB_BUILD") == "ALL_CONNECTORS") { | ||
include ':airbyte-cdk:python' | ||
include ':airbyte-integrations:bases:airbyte-protocol' | ||
include ':airbyte-integrations:bases:base' | ||
|
@@ -115,7 +115,7 @@ if (!System.getenv().containsKey("SUB_BUILD") || System.getenv().get("SUB_BUILD" | |
} | ||
|
||
// connectors | ||
if (!System.getenv().containsKey("SUB_BUILD")) { | ||
if (!System.getenv().containsKey("SUB_BUILD") || System.getenv().get("SUB_BUILD") == "ALL_CONNECTORS") { | ||
// include all connector projects | ||
def integrationsPath = rootDir.toPath().resolve('airbyte-integrations/connectors') | ||
println integrationsPath | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment just above here is out of date now. Add
ALL_CONNECTORS
to the list. It's minor but I think justCONNECTORS
would be fine too and maybe more intuitive.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use
ALL_CONNECTORS
to distinguish it fromCONNECTORS_BASE
.