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

后端 未结 7 596
甜味超标
甜味超标 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:32

    This is the correct answer for the maven-publish plugin. This is intended as the successor for the older maven plugin.

    If, as I am, you are stuck with the older plugin, the correct answer to "How do I set the maven artifact id for a gradle project" is:

    uploadArchives {
        repositories {
            mavenDeployer {
                pom.artifactId = 'project-sample'
            }
        }
    }
    
    0 讨论(0)
提交回复
热议问题