Posted about 7 years ago. Visible to the public. Linked content.

Add new resource folder in Gradle

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

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

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

Owner of this card:

Avatar
leonidv
Last edit:
about 7 years ago
Posted by leonidv to Leonid's cards
This website uses short-lived cookies to improve usability.
Accept or learn more