title: Gradle - jar file name in java plugin
body: <p>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 </p>
  
  <blockquote>
    <p><strong>trunk</strong>-XXXVERSION-SNAPSHOT.jar</p>
  </blockquote>
  
  <p>I am running gradle build file from trunk directory of this maven java project. </p>
  
  <p>I want to get the project name (for ex: project1) in the jar file name, something like </p>
  
  <blockquote>
    <p><strong>project1</strong>-XXXVERSION-SNAPSHOT.jar</p>
  </blockquote>
  
  <p>in build/libs directory.
  Please suggest.</p>