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
The default project name is taken from the directory the project is stored in. Instead of changing the naming of the jar explicitly you should set the project name correct for your build. At the moment this is not possible within the build.gradle
file. Instead, you have to create a settings.gradle
file in your root directory. This settings.gradle
file should have this one liner included:
rootProject.name = 'project1'