That wasn’t enough either. I didn’t update my GitHub repo with the latest working version so this is probably wrong but this should be close to what finally worked:
jar {
manifest {
attributes 'Main-Class': 'com.sofistes.megafooni.AppKt'
}
from { configurations.compile.collect {it.isDirectory() ? it : zipTree(it) } }
}
mainClassName = "com.sofistes.Megafooni.MainKt"