Closed gregoryboue closed 2 years ago
Hi,
Any news about this ?
This problem was due to an artifactory publications artifact misconfiguration, i close the issue
i have the same problem. How did you work it out?
you have to configure your publishing.publications block to publish only one buildType :
publishing {
publications {
app(MavenPublication) {
groupId = group
artifactId = project.getName()
version = version
// only debug apk
artifact("$buildDir/outputs/apk/debug/${project.getName()}-debug.apk")...
}
artifactoryPublish.dependsOn('assemble')
artifactoryPublish {
publications(publishing.publications.app)
}
or you can configure one publication by builldType and add this publications in artifactoryPublish
publishing.publications {
android.applicationVariants.all { variant ->
"maven${variant.name.capitalize()}Apk"(MavenPublication) {
// artifact configurations here
}
}
}
artifactoryPublish.dependsOn("assemble")
artifactoryPublish {
android.applicationVariants.all { variant ->
if (variant.name.contains("${flavour}${currentJob.capitalize()}")) {
publications("maven${variant.name.capitalize()}Apk")
}
}
}
gradle 7.5 com.android.tools.build:gradle:7.4.1 "org.jfrog.buildinfo:build-info-extractor-gradle:latest.release"
错误信息,请问这个错误如何解决?
配置内容,多项目 app + library 在一个project下,只配置 APP 主项项目
Describe the bug
On android project with gradle 7.3.3 and com.android.tools.build:gradle:7.2.1,
jf audit
command produce following error :To Reproduce
<activity android:name=".MainActivity" android:exported="true">
Expected behavior
a
jf audit
execution without errors and functionnal project dependency scanVersions
Additional context
It seems that variant production (debug, release) is root cause, if i update modules configuration in root build.gradle as following, it works :
artifactoryPublish.dependsOn('build')
->artifactoryPublish.dependsOn('assembleDebug')
orartifactoryPublish.dependsOn('assembleRelease')
.This problem also affect
jf build scan
command because no dependency information are collected in build-info when i perform a jf gradle build.