Question

I have a multi project gradle build, (Gradle version 1.9).

I am running gradle clean build distZip from /vagrant directory. /vagrant is the root project directory. This directory contains another directory my-app. While executing jar task, I see the following error:

Failed to create parent directory '/my-app' when creating directory '/my-app/build/tmp/jar'

Why is the jar task trying to create my-app under the root directory? It is not getting permission for that. Shouldn't it create under ./my-app/build/tmp/jar?

Edit: Add settings.gradle

rootProject.name = 'my-app'
includeFlat 'my-app-core', 'my-app'
Était-ce utile?

La solution

Try replacing "includeFlat" in settings.gradle file with "include" it will work :)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top