Exclude file from resource in Gradle

If you want to exclude one file from resource, you may use this snippet:

sourceSets {
	main {
		resources {
			exclude '**/*.bak'
		}
	}	
}
leonidv over 7 years ago
This website uses short-lived cookies to improve usability.
Accept or learn more