I am trying with Gradle first time. I am trying with a maven java project to compile and create a jar file. It is compiling and creating the jar file in build/libs directory as
I recently migrated to gradle 4.6 (from 3. something) and the
jar { baseName = 'myjarname' }
stopped working, gradle named my jar from the folder name.
So I switched to archivesBaseName = 'myjarname' which works.
archivesBaseName = 'myjarname'
Maybe this helps somebody else too.