I am getting an issue with signing my ios and andr...
# multiplatform
a
I am getting an issue with signing my ios and android maven publication, has anyone experienced this?
Copy code
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
A problem was found with the configuration of task ':library:signIosArm64Publication' (type 'Sign').

For more on this, please refer to <https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings> in the Gradle documentation.
  - Gradle detected a problem with the following location: '/Users/runner/work/KIterable/KIterable/library/build/libs/library-0.1.0-javadoc.jar.asc'.
    
    Reason: Task ':library:publishAndroidPublicationToMavenRepository' uses this output of task ':library:signIosArm64Publication' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    
    Possible solutions:
      1. Declare task ':library:signIosArm64Publication' as an input of ':library:publishAndroidPublicationToMavenRepository'.
      2. Declare an explicit dependency on ':library:signIosArm64Publication' from ':library:publishAndroidPublicationToMavenRepository' using Task#dependsOn.
      3. Declare an explicit dependency on ':library:signIosArm64Publication' from ':library:publishAndroidPublicationToMavenRepository' using Task#mustRunAfter.
    
    For more information, please refer to <https://docs.gradle.org/8.3/userguide/validation_problems.html#implicit_dependency> in the Gradle documentation.
https://github.com/MyUNiDAYS/KIterable/actions/runs/6813160979/job/18527102578 It seems like android is missing the signing and trying to use the ios ones? https://github.com/MyUNiDAYS/KIterable/blob/master/library/build.gradle.kts I recently bumped jvm to 17
p
Yes, there is a workaround
a
oh please let me know, its been wasting my afternoon
p
Correct
On my phone now, I LL send you a link of a build gradle example using it
a
ive gone with this solution
Copy code
tasks.withType<AbstractPublishToMaven>().configureEach {
    val signingTasks = tasks.withType<Sign>()
    mustRunAfter(signingTasks)
}
will see if it completes in a second
p
Basically the same, should work
a
yes it did thanks
p
Great 👍