How do you set the maven artifact ID of a gradle project?

后端 未结 7 593
甜味超标
甜味超标 2021-01-30 03:48

From the gradle maven-publish plugin\'s documentation, it\'s clear that you set the groupId and version of the project directly in build.gradle

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-30 04:15

    In Gradle, you can set jar.archiveName to override the use of the working folder's name...

    group = 'com.example'
    version = '0.0.1-SNAPSHOT'
    jar.archiveName = "myproject-0.0.1-SNAPSHOT.jar"
    

提交回复
热议问题