Skip to content

Commit

Permalink
fix: return correct language tag when using Kotlin build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpgrailsdev committed Dec 17, 2024
1 parent c27161b commit 593c2ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ def get_expected_language_tag(self, connector: Connector) -> str:
connector.code_directory / consts.PYPROJECT_FILE_NAME
).exists():
return self.PYTHON_LANGUAGE_TAG
elif (connector.code_directory / consts.GRADLE_FILE_NAME).exists():
elif (connector.code_directory / consts.GRADLE_FILE_NAME).exists() or (
connector.code_directory / consts.GRADLE_KOTLIN_FILE_NAME
).exists() :
return self.JAVA_LANGUAGE_TAG
else:
raise ValueError("Could not infer the language tag from the connector directory")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
DOCKERFILE_NAME = "Dockerfile"
DOCUMENTATION_STANDARDS_URL = "https://hackmd.io/Bz75cgATSbm7DjrAqgl4rw"
GRADLE_FILE_NAME = "build.gradle"
GRADLE_KOTLIN_FILE_NAME = "build.gradle.kts"
LICENSE_FAQ_URL = "https://docs.airbyte.com/developer-guides/licenses/license-faq"
LOW_CODE_MANIFEST_FILE_NAME = "manifest.yaml"
METADATA_DOCUMENTATION_URL = "https://docs.airbyte.com/connector-development/connector-metadata-file"
Expand Down

0 comments on commit 593c2ab

Please sign in to comment.