# UploadTask from Gradle Standalone Plugin

**URL:** https://discuss.gradle.org/t/uploadtask-from-gradle-standalone-plugin/34185
**Category:** Help/Discuss
**Created:** [December 12, 2019, 5:39pm UTC](https://discuss.gradle.org/t/uploadtask-from-gradle-standalone-plugin/34185 "2019-12-12T17:39:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![PeterBocan](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@PeterBocan](https://discuss.gradle.org/u/PeterBocan)
#### Post date: [December 12, 2019, 5:39pm UTC](https://discuss.gradle.org/t/uploadtask-from-gradle-standalone-plugin/34185/1 "2019-12-12T17:39:39Z")

</div>

Hello guys, I am trying to build a standalone plugin, everything goes rather smoothly, but I need to configure uploadArchives task. I am using Java. How am I supposed to configure it?

I am trying to do the following, but I can’t make heads or tails of it.

```
Upload uploadArchivesTask = (Upload)project.getTasks().findByName("uploadArchives");
uploadArchivesTask.repositories().maven()

```

Is there any form of example how to do it?
