In Gradle, how can I generate a POM file with dynamic dependencies resolved to the actual version used?

后端 未结 3 1864
我在风中等你
我在风中等你 2021-01-02 10:22

In Gradle, how can I generate a POM file with dynamic dependencies resolved to the actual version used?

dependencies {
    testCompile(group: \'junit\', name         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-02 10:51

    I've taken a stab at integrating this into a plugin that can be applied, the specific code is available here: https://github.com/nebula-plugins/nebula-publishing-plugin/blob/master/src/main/groovy/nebula/plugin/publishing/maven/ResolvedMavenPlugin.groovy

    And it can be included via jcenter() via 'com.netflix.nebula:nebula-publishing-plugin:1.9.1'.

提交回复
热议问题