我已经将 Gradle 配置为使用新的 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
如何以旧(工作)方式实现这一目标?项目发布时是否可以自动化项目标记?