Add new resource folder in Gradle

If you want to add new resource folder to Gradle build, use this snippet:

sourceSets {
	main {
		resources {
			srcDir 'src/main/java'	

.java (.groovy and *scala) file will be skipped on build from resources.

leonidv about 9 years ago
This website uses short-lived cookies to improve usability.
Accept or learn more