Naah. I found a better solution:
distributions {
main {
baseName = 'my_app'
contents {
from {
"$buildDir/distribution-files/application"
}
into '/'
}
}
}
The following attribute is the key here:
into '/'
But thanks anyway.