Skip to content

Instantly share code, notes, and snippets.

@vanduc1102
Last active March 23, 2026 03:18
Show Gist options
  • Select an option

  • Save vanduc1102/e517b5e66a19f9f7b6aaf081f338fac5 to your computer and use it in GitHub Desktop.

Select an option

Save vanduc1102/e517b5e66a19f9f7b6aaf081f338fac5 to your computer and use it in GitHub Desktop.
VSCode Spring Boot Project Gradle Configuration
{
"configurations": [
{
"type": "java",
"name": "Debug Application (local)",
"request": "attach",
"hostName": "127.0.0.1",
"port": 5005,
"timeout": 120000,
"preLaunchTask": "gradlew: bootRun (local, debug)"
},
{
"type": "java",
"name": "Debug Application (dev)",
"request": "attach",
"hostName": "127.0.0.1",
"port": 5005,
"timeout": 120000,
"preLaunchTask": "gradlew: bootRun (dev, debug)"
},
{
"type": "java",
"name": "Debug Application (test)",
"request": "attach",
"hostName": "127.0.0.1",
"port": 5005,
"timeout": 120000,
"preLaunchTask": "gradlew: bootRun (test, debug)"
},
{
"type": "java",
"name": "Attach to Remote JVM",
"request": "attach",
"hostName": "127.0.0.1",
"port": 5005
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "gradlew: bootRun (local, debug)",
"type": "shell",
"command": "./gradlew",
"args": [
"bootRun",
"--debug-jvm",
"--args=--spring.profiles.active=local --spring.main.banner-mode=off"
],
"options": {
"env": {
"APP_OPERATION_DDDD_DELETE_REJECTED_APP": "45m",
"APP_OPERATION_CCCC_DELETE_APPROVED_APP": "90m",
"APP_OPERATION_BBBB_DELETE_APPROVED_APP_DD": "45m"
}
},
"isBackground": true,
"problemMatcher": {
"owner": "custom",
"fileLocation": "absolute",
"pattern": {
"regexp": "^(.*)$",
"file": 1,
"message": 1
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*",
"endsPattern": "Listening for transport dt_socket at address: 5005"
}
}
},
{
"label": "gradlew: bootRun (dev, debug)",
"type": "shell",
"command": "./gradlew",
"args": [
"bootRun",
"--debug-jvm",
"--args=--spring.profiles.active=dev"
],
"isBackground": true,
"problemMatcher": {
"owner": "custom",
"fileLocation": "absolute",
"pattern": {
"regexp": "^(.*)$",
"file": 1,
"message": 1
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*",
"endsPattern": "Listening for transport dt_socket at address: 5005"
}
}
},
{
"label": "gradlew: bootRun (test, debug)",
"type": "shell",
"command": "./gradlew",
"args": [
"bootRun",
"--debug-jvm",
"--args=--spring.profiles.active=test"
],
"isBackground": true,
"problemMatcher": {
"owner": "custom",
"fileLocation": "absolute",
"pattern": {
"regexp": "^(.*)$",
"file": 1,
"message": 1
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*",
"endsPattern": "Listening for transport dt_socket at address: 5005"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment