{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Maven: Clean",
            "type": "shell",
            "command": "mvn clean",
            "group": "build",
            "problemMatcher": []
        },
        {
            "label": "Maven: Compile",
            "type": "shell",
            "command": "mvn clean compile",
            "group": "build",
            "problemMatcher": []
        },
        {
            "label": "Maven: Package (Skip Tests)",
            "type": "shell",
            "command": "mvn clean package -DskipTests -Dmaven.test.skip=true",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": []
        },
        {
            "label": "Maven: Install BladeX Framework",
            "type": "shell",
            "command": "cd /remote_dev/martial/martial-tool && mvn clean install -DskipTests",
            "group": "build",
            "problemMatcher": [],
            "presentation": {
                "echo": true,
                "reveal": "always",
                "focus": false,
                "panel": "shared"
            }
        },
        {
            "label": "Spring Boot: Run Dev",
            "type": "shell",
            "command": "source ~/.sdkman/bin/sdkman-init.sh && mvn spring-boot:run -Dspring-boot.run.profiles=dev",
            "group": "none",
            "problemMatcher": [],
            "isBackground": true
        },
        {
            "label": "Kill Java Process on Port 8123",
            "type": "shell",
            "command": "lsof -ti:8123 | xargs kill -9 || echo 'No process on port 8123'",
            "group": "none",
            "problemMatcher": []
        }
    ]
}
