尊重原创:https://blog.csdn.net/kevin_luan/article/details/50996109
根据build.gradle 生成maven pox.xml
1.将以下配置添加到build.gradle文件中。
apply plugin: ‘maven‘ group = ‘com.company.root‘ // artifactId is taken by default, from folder name version = ‘0.0.1-SNAPSHOT‘ task writeNewPom << { pom { project { inceptionYear ‘2014‘ licenses { license { name ‘The Apache Software License, Version 2.0‘ url ‘http://www.apache.org/licenses/LICENSE-2.0.txt‘ distribution ‘repo‘ } } } }.writeTo("pom.xml") }
2. 进入项目路径执行 gradle writeNewPom
http://stackoverflow.com/questions/12888490/gradle-build-gradle-to-maven-pom-xml
Gradle build.gradle to Maven pom.xml ,终于找到你了。
原文:https://www.cnblogs.com/xiaohouzai/p/8989797.html