47a660e479
Effectively solved by rearranging order of lines - runtimeJar() should be used after publish(). Otherwise, jar task is not registered as dependency for publication, and publication misses the main jar. #KTI-637 Fixed