Баста
Баста

Reputation: 136

Gradle Zip complete parent project

task fullZip(type: Zip) {
    baseName = 'fullZip'

    from projectDir.parentFile
    exclude 'build'
}

Looking to zip complete project, with the entire subprojects/modules.

Gradle task never completes and the size of the zip is building up to enormous size while it's a small project in general. This zip task is part of gradle file in one of the module.

From the half cooked zip file, I can see build directories, which should have been excluded are present.

Upvotes: 0

Views: 247

Answers (1)

Crazyjavahacking
Crazyjavahacking

Reputation: 9677

You need to use exclude **/build/*.

Upvotes: 1

Related Questions