【发布时间】:2013-12-06 13:39:34
【问题描述】:
我已将 Gradle 配置为使用 new Maven Publisher Plugin 发布项目工件,不幸的是,此插件在生成的 pom.xml 中存在依赖问题 - 依赖的范围为 runtime 而不是 compile。
我的配置是这样的:
apply plugin: 'maven-publish'
publishing {
publications {
mavenCustom(MavenPublication) {
from components.java
}
}
repositories {
maven {
url "https://api.bintray.com/maven/codearte/public/fairyland"
credentials {
username = bintrayUser
password = bintrayKey
}
}
}
}
只需一个命令即可轻松发布:
gradle publish
如何以旧(工作)方式实现这一目标?项目发布时是否可以自动进行项目标记?
【问题讨论】:
标签: gradle release publish pom.xml bintray