项目分层(阿里巴巴Java开发手册推荐)
Gradle项目
在APP project的build.gradle中配置依赖其他project,执行task会输出到build文件夹
默认debug的时候会创建launch.json
{
"version": "0.1.0",
"configurations": [
{
"type": "java",
"name": "Launch Java Program",
"request": "launch",
"mainClass": "com.xxx.yyy.app"
}
]
}
Debug
-
运行gradle task
-
launch.json修改为
{
"version": "0.1.0",
"configurations": [
{
"type": "java",
"name": "Launch Java Program",
"request": "launch",
"mainClass": "com.xxx.yyy.app",
"classPaths": [
"$Auto",
"${cwd}\\build\\JARFolder"
]
}
]
}
标签:Java,launch,VSCode,gradle,project,build,debug,multiple
From: https://www.cnblogs.com/talentzemin/p/17060236.html