Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 400 Bytes

gradle-zip.md

File metadata and controls

18 lines (13 loc) · 400 Bytes

Title: Gradle: Zipping files Tags: gradle,gradle-zip

If you put

    apply plugin:'java'

at the top of your build.gradle file you can run 'gradle zip' with the following:

	task zip(type: Zip) {
	    archiveName = "ItsName.zip"
	    from projectDir
	    include 'somedir/**/*'
	    include 'filefile.txt'
	    include '*.others'
	}

Your zip will be available at build/distributions/.