Gradle clean install


(Alessio ) #1

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?


(Mark Vieira) #2

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'

(Alessio ) #3

ok thanks very much …