rodm / gradle-teamcity-plugin

Gradle plugin for developing TeamCity plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide progress logging for the download task

rodm opened this issue · comments

Provide progress logging for the download task, this will require a fix to Gradle issue, GRADLE-2787

Thanks for the link Vlad. I've had a look through the code it looks like it uses Gradle's dependency management to download the artifacts from a Maven repository which provides the progress updates. Downloading the TeamCity distribution is from a web server I assume and doesn't provide the metadata to allow it to be used as a Maven or Ivy repository. I tried many months ago defining an Ivy repository, Gradle will try looking for an ivy file if not found it tries the artifact URL, unfortunately the TeamCity download server returns a 403 for the ivy file and Gradle gives up.

Updated the download task to use a copy of the ProgressLoggerWrapper from the gradle-download-task project

Will leave this issue open as a reminder to check on support being provided by Gradle in the future.