uploadArchives {
repositories {
mavendeployer {
repository(url: "${nexusUrl}/content/repositories/apps-releases") {
authentication(userName: nexusUsername, password: nexusPassword)
}
snapshotRepository(url: "${nexusUrl}/content/repositories/apps-snapshots") {
authentication(userName: nexusUsername, password: nexusPassword)
}
pom.groupId = "$defaultApplicationId"
pom.artifactId = 'MyApp'
pom.version = applicationVersionName()
}
}
}
从teamcity运行这个:
clean assembleDebug testDebugUnitTest crashlyticsuploaddistributionDebug uploadArchives
在构建调试版本之后,似乎uploadArchives也正在构建一个发行版本.因此,当构建完成时,我将调试和发布apk作为生成的构造中的人工制品.但如果我删除uploadArchives它只生成调试apk.
反正有没有阻止这个?这不是什么大问题,但只建立我指定的版本会很好;即uploadDebugArchives和uploadReleaseArchives会很好……
最佳答案:
见:http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Library-Publication
将defaultPublishConfig设置为要发布的构建类型.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。