File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -155,9 +155,21 @@ cdkPath.eachDir { dir ->
155
155
def integrationsPath = rootDir. toPath(). resolve(' airbyte-integrations/connectors' )
156
156
integrationsPath. eachDir { dir ->
157
157
def buildFiles = file(dir). list { file , name -> name == " build.gradle" }
158
- if (buildFiles. length == 1 ) {
159
- include " :airbyte-integrations:connectors:${ dir.getFileName()} "
158
+ if (buildFiles. length != 1 ) {
159
+ // Ignore python and other non-gradle connectors.
160
+ return
161
+ }
162
+ File metadataFile = dir. resolve(" metadata.yaml" ). toFile()
163
+ if (! metadataFile. exists()) {
164
+ // Don't support connectors without metadata.
165
+ return
166
+ }
167
+ String metadataYaml = metadataFile. getText(" UTF-8" )
168
+ if (metadataYaml =~ / (?m)^\s +supportLevel:\s *["']?archived["']?\s *$/ ) {
169
+ // Ignore archived connectors.
170
+ return
160
171
}
172
+ include " :airbyte-integrations:connectors:${ dir.getFileName()} "
161
173
}
162
174
163
175
// Include miscellaneous modules.
You can’t perform that action at this time.
0 commit comments