How to change destination folder in zip for gradle distribution plugin

I am creating a zip file using the gradle distribution plugin:

distributions {
    installer {
        baseName 'installer'
        contents {
            from 'src/main/installer'
        }
    }
}

Inside zip files are placed in a folder with a name <basename>-<version>, for example. installer-0.2.1-SNAPSHOTI want them to be placed right on the zip root, is this possible?

+4
source share

Source: https://habr.com/ru/post/1616510/


All Articles