forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚀 Launch Java CDK
v0.1.0
(PR airbytehq#30383)
- Launch Java CDK `v0.1.0`. 🚀 - Remove `airbyte-docker` gradle plugin from java connectors. - Add `airbyte-java-connector` gradle plugin. - Remove `airbyte-commons` from global build.gradle. - Add `/publish-java-cdk` slash command. - Initial launch of `/airbyte-ci` slash command to test connectors.
- Loading branch information
1 parent
96f022b
commit da32fc8
Showing
1,302 changed files
with
6,111 additions
and
4,855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
{ | ||
"name": "Connector Development DevContainer (Generic)", | ||
|
||
"image": "mcr.microsoft.com/devcontainers/java:0-17", | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker": {}, | ||
"ghcr.io/devcontainers/features/java:1": { | ||
"installGradle": true, | ||
"version": "latest", | ||
"jdkDistro": "open", | ||
"gradleVersion": "7.5.1" | ||
}, | ||
// Python needed for `airbyte-ci` CLI | ||
"ghcr.io/devcontainers/features/python:1": { | ||
"installGradle": true, | ||
"version": "3.10", | ||
"installTools": true | ||
}, | ||
"ghcr.io/devcontainers-contrib/features/poetry:2": {} | ||
}, | ||
|
||
// Deterministic order reduces cache busting | ||
"overrideFeatureInstallOrder": [ | ||
"ghcr.io/devcontainers/features/docker-in-docker", | ||
"ghcr.io/devcontainers/features/java", | ||
"ghcr.io/devcontainers/features/python", | ||
"ghcr.io/devcontainers-contrib/features/poetry" | ||
], | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["vscjava.vscode-gradle", "tamasfe.even-better-toml"], | ||
"settings": { | ||
"extensions.ignoreRecommendations": true, | ||
"git.openRepositoryInParentFolders": "always" | ||
} | ||
} | ||
}, | ||
|
||
// Mark the root directory as 'safe' for git. | ||
"initializeCommand": "git config --add safe.directory /workspaces/airbyte", | ||
|
||
// Install Gradle, `airbyte-ci` CLI, and Dagger (installed via airbyte-ci --help) | ||
"postCreateCommand": "./gradlew --version && pipx install --editable ./airbyte-ci/connectors/pipelines/ || airbyte-ci --help || true", | ||
|
||
"containerEnv": { | ||
// Deterministic Poetry virtual env location: `./.venv` | ||
"POETRY_VIRTUALENVS_IN_PROJECT": "true" | ||
} | ||
|
||
// Override to change the directory that the IDE opens by default: | ||
// "workspaceFolder": "/workspaces/airbyte" | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
airbyte-cdk/java/airbyte-cdk/_rebuild_full_fileset_branch.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# This script is used to rebuild the java-cdk-010-d2 branch from scratch. | ||
# TODO: Delete this script once the migration is complete. | ||
|
||
# Check with the use to confirm the action | ||
read -p "This script will delete and recreate the java-cdk-010-d2 branch. You should merge in the latest from from master before running this. Are you sure? (y/n) " -n 1 -r | ||
|
||
# Switch to the base branch | ||
git checkout java-cdk-010-d | ||
# Make sure the base branch is up-to-date | ||
# git merge origin/master | ||
# Delete and recreate the old branch locally | ||
git branch -D java-cdk-010-d2 | ||
git checkout -b java-cdk-010-d2 | ||
# Run the migration script | ||
python ./airbyte-cdk/java/airbyte-cdk/_temp_migration_script.py | ||
# Stage the changes and commit | ||
git add . | ||
git commit -m "commit the migration script result" | ||
# Force push to the origin (this PR) | ||
git push -uf origin java-cdk-010-d2 | ||
|
||
# git cherry-pick c125f14cdce8be61da85ebedffd3c4a576dc1fc5 # delete dead code (incorrectly annotated as override) | ||
# git cherry-pick 89d81ec62fcfa44fff36196e2d34571b46593818 # disable GlobalStateManagerTest.testToState |
Oops, something went wrong.