palantir / gradle-docker

a Gradle plugin for orchestrating docker builds and pushes.
Apache License 2.0
747 stars 158 forks source link

Cannot add dependencies #751

Open monandszy opened 4 months ago

monandszy commented 4 months ago

this gradle.build: dependencies { docker("library:caddy:2.8.4-alpine") }

compose-template.yml services: caddy: image: caddy:{{library:caddy}} is not resolved correctly no matter what dependency I try

Task :app:generateDockerCompose FAILED Resolving Docker template dependencies from configuration docker... Resolving global dependency management for project 'app' Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/library/caddy/2.8.4-alpine/caddy-2.8.4-alpine.pom] Excluding []

Execution failed for task ':app:generateDockerCompose'.

Error while evaluating property 'moduleDependencies' of task ':app:generateDockerCompose'. Could not resolve all dependencies for configuration ':app:docker'. Could not find library:caddy:2.8.4-alpine. Required by: project :app

is it even supposed to behave this way, or did I configure something wrong?