henrik
07/01/2024, 9:06 AM$FILE_DIR$
? e.g. "sub/project2/src/main/com/example" would become "sub/project2". That way we could support running project agnostic gradle tasks in multi-projects. (e.g. running a kotest in a gradle
run configuration)henrik
07/01/2024, 10:35 AM{
"configurations": [
{
"type": "gradle",
"name": "Run Gradle test",
"tasks": [ "test" ],
"args": [ "-p", "$RELATIVE_FILE_DIR_FIRST_TWO$",
"--tests", "$FILE_NAME_NO_EXT$"],
"workingDir": "$PROJECT_DIR$",
},
]
}
Here RELATIVE_FILE_DIR_FIRST_TWO
is the would-be new macro that gives the first two dirs relative to the project root directory. We are now able to run a kotest in a Gradle multi-project.