# Gradle clean install

**URL:** <https://discuss.gradle.org/t/gradle-clean-install/18866>\
**Category:** Help/Discuss\
**Created:** [August 9, 2016, 8:43am UTC](https://discuss.gradle.org/t/gradle-clean-install/18866 "2016-08-09T08:43:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alessiovaralta](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@alessiovaralta](https://discuss.gradle.org/u/alessiovaralta)\
**Post date:** [August 9, 2016, 8:43am UTC](https://discuss.gradle.org/t/gradle-clean-install/18866/1 "2016-08-09T08:43:51Z")

</div>

Hi, I have a gradle project.  
I have the instruction for compile the program and I have to do

./gradlew clean install

but when i run this command

Task ‘install’ not found in root project

Any ideas?

---

<div class="post-metadata">

**Author:** ![mark\_vieira](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/mark_vieira/32/5396_2.png) [@mark\_vieira](https://discuss.gradle.org/u/mark_vieira)\
**Post date:** [August 11, 2016, 2:06am UTC](https://discuss.gradle.org/t/gradle-clean-install/18866/2 "2016-08-11T02:06:13Z")

</div>

Depends what you’re expecting. You are probably thinking of the ‘install’ task that builds the project and then copies artifacts to your local maven repository. In that case you need simply apply the ‘maven’ plugin to your project.

```
apply plugin: 'maven'
```

---

<div class="post-metadata">

**Author:** ![alessiovaralta](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@alessiovaralta](https://discuss.gradle.org/u/alessiovaralta)\
**Post date:** [August 17, 2016, 1:42pm UTC](https://discuss.gradle.org/t/gradle-clean-install/18866/3 "2016-08-17T13:42:34Z")

</div>

ok thanks very much …
