Gradle - jar file name in java plugin

前端 未结 9 1857
借酒劲吻你
借酒劲吻你 2021-02-01 11:46

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

9条回答
  •  佛祖请我去吃肉
    2021-02-01 12:30

    If you are using a newer Gradle version, baseName, archieveName will now be deprecated. Instead, use something like

    jar {
       archivesBaseName = 'project1'
       archiveVersion = '1.0-SNAPSHOT'
    }
    

提交回复
热议问题