[tools]
java = "temurin-25.0.3+9.0.LTS"
maven = "3.9.12"
"npm:chromadb" = "3.4.3"

[tasks.dev]
depends = ["clean"]
run = "mvn compile quarkus:dev"
description = "Start dev mode with live reload (port 7070)"

[tasks.compile]
depends = ["clean"]
run = "mvn compile"
description = "Compile sources only (fast feedback)"

[tasks.test]
run = "mvn verify"
description = "Compile + unit tests + integration tests (requires Docker)"

[tasks.validate]
run = "mvn validate"
description = "Run Checkstyle code style checks"

[tasks.format]
run = "mvn formatter:format"
description = "Auto-format Java sources using the project Eclipse formatter"

[tasks.docker-build]
run = "mvn clean package '-Dquarkus.container-image.build=true'"
description = "Build the app + Docker image"


[tasks.license-gen]
run = "mvn package -Plicense-gen -DskipTests"
description = "Generate third-party licenses (Red Hat certification)"

[tasks.debug]
run = "mvn quarkus:dev -Dsuspend"
description = "Start dev mode and wait for debugger on port 5005"

[tasks.clean]
run = "mvn clean"
description = "Clean build — delete target"


[tasks.chroma]
run = "docker compose -f docker-compose.chroma.yml up"
description = "Starts ChromaDB"

