Sounds weird, but ...
how to create a simple empty folder in the target folder using gradle without copying artifacts and using the "in ()" method?
This is an easy way to do this without using native Groovy, but Gradle?
Why don't you just try:
new File('lol').mkdirs()
With gradle:
project.file('lol').mkdirs()
The docs are here .