diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..dbfdb50 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,20 @@ +{ + "name": "Datadog Kafka Connect Logs Development", + "image": "ubuntu:22.04", + "features": { + "ghcr.io/devcontainers/features/java:1": { + "version": "8", + "installMaven": true + }, + "ghcr.io/devcontainers/features/git:1": {} + }, + "customizations": { + "vscode": { + "extensions": [ + "vscjava.vscode-java-pack", + "vscjava.vscode-maven", + "vscjava.vscode-java-debug" + ] + } + } +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..c1ff79c --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,13 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "java", + "name": "Debug (Attach) - Maven Test", + "request": "attach", + "hostName": "localhost", + "port": 5005, + "preLaunchTask": "Maven Task (Debug)" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4063e87 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,20 @@ +{ + "java.test.config": { + "vmargs": [ + "-Djetty.port=8080" + ] + }, + "java.test.defaultConfig": "default", + "java.test.config.default": { + "vmargs": [ + "-Djetty.port=8080" + ] + }, + "java.test.config.default.vmargs": [ + "-Djetty.port=8080" + ], + "java.test.config.default.vmargs[0]": "-Djetty.port=8080", + "java.test.config.default.vmargs[1]": "-DfailIfNoTests=false", + "java.test.config.default.vmargs[2]": "-Dmaven.test.failure.ignore=true", + "java.configuration.updateBuildConfiguration": "automatic" +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..1ab0aa4 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,27 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Maven Task (Debug)", + "type": "shell", + "command": "mvn", + "args": [ + "test", + "-Dmaven.surefire.debug", + ], + "isBackground": true, + "problemMatcher": { + "pattern": { + "regexp": "^$", + "file": 1, + "location": 2, + "message": 3 + }, + "background": { + "beginsPattern": ".*", + "endsPattern": ".*Listening.*" + } + } + } + ] +}