Shadow Plugin override Main-Class attribute

Hello, currently I try to use the shadow plugin to create my cradle distribution files.

However now I want to use a different Main-Class attribute for my shadowed jar, than I would use inside the application plugin.
However I have no idea if that is even possible.

I currently tried to overwrite it via:

shadowJar {
    // custom main class for shadow distribution
    manifest {
        attributes 'Main-Class': 'demo.Other'
    }
}

However that does not work and it will still use whatever is defined inside mainClassName