How can i archive .gitignore file into zip by Zip task

I want to archive source code of my project by Zip task, but i found that some files starts with “.” (e.g. .gitignore) will missing in zip pack.

How to include it? THANKS VERY MUCH!!!

task startBackup(type: Zip, dependsOn: cleanBackup){
    baseName = backup_name
    destinationDir = file(backup_dir)
    from ('.') {
        //exclude itself
        exclude backup_dir
        exclude '/.gradle'
        exclude '/build'
        exclude '/captures'
        exclude '/release'
        exclude '*/build'
    }
}