Gradle distribution plugin

gradle-core
gradlecom
gradle-3297

(Mishra) #1

i have to create zip, tar.gz and tar.bz2 and include src, build.gradle and exclude .* files…
zip
tar.gz
tar.bz2

so i have created below distribution in build.gradle but this will create sample.zip and sampe.tar.
how to create tar.gz and tar.bz2
distributions {
main {
baseName = 'Sample’
contents {
from { ‘.’ }
exclude "build"
exclude ".*"
exclude “target”

			}
		}
		}

thanks.