Skip to content
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: remove archived connectors #35423

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,21 @@ cdkPath.eachDir { dir ->
def integrationsPath = rootDir.toPath().resolve('airbyte-integrations/connectors')
integrationsPath.eachDir { dir ->
def buildFiles = file(dir).list { file, name -> name == "build.gradle" }
if (buildFiles.length == 1) {
include ":airbyte-integrations:connectors:${dir.getFileName()}"
if (buildFiles.length != 1) {
// Ignore python and other non-gradle connectors.
return
}
File metadataFile = dir.resolve("metadata.yaml").toFile()
if (!metadataFile.exists()) {
// Don't support connectors without metadata.
return
}
String metadataYaml = metadataFile.getText("UTF-8")
if (metadataYaml =~ /(?m)^\s+supportLevel:\s*["']?archived["']?\s*$/) {
// Ignore archived connectors.
return
}
include ":airbyte-integrations:connectors:${dir.getFileName()}"
}

// Include miscellaneous modules.
Expand Down
Loading