Signing custom configuration does not work on continuous runs


(Vedasri) #1

Hi,

I have a custom configuration like
configurations {
arts {
extendsFrom archives
}
}
and uploadArts task for this. I am creating multiple zip files and trying to publish them each as one artifact.

I have given conditional signing inside a task which uploadArts depends on.
signing {
required = { “true”.equalsIgnoreCase(System.getProperty(“PUBLISHING_REQUIRED”))}
sign configurations.arts
}

signing works fine for the first time. I was trying to publish the artifacts to maven central and receiving many violation errors. when rerunning the upload task by fixing the issues, signature files not getting generated. Sometimes with 3 to 4 hours interval, they used to get generated.

Is there any timing restriction on generating signature files? or am I doing something wrong?