Depends how the iOS library is distributed. If it's a Kotlin library, you just set the version variable in build.gradle.kts, and maven publish will recognize this for all maven publications in that module. If via cocoapods or swift package manager, the gradle plugin will ask you to give a version.