I’m trying to use Gradle’s dependency verification...
# gradle
c
I’m trying to use Gradle’s dependency verification e.g. with the command line flag
--write-verification-metadata sha256
. The challenge is with Kotlin Native targets, it only resolves the macOS Arm64 targets when I run the command locally on my Mac. When I then do a subsequent build on GitHub Actions (Linux x64), it fails because the verification metadata for that target is missing. I run into this regularly with the
org.jetbrains.kotlin:kotlin-native-prebuilt
dependency. Is there a straightforward way to resolve these other platform targets? This is how I’m currently resolving all dependencies:
Copy code
init.gradle.kts

initscript {
    repositories {
        gradlePluginPortal()
    }
    dependencies {
        classpath("org.gradle:github-dependency-graph-gradle-plugin:1.3.1")
    }
}

apply<org.gradle.dependencygraph.simple.SimpleDependencyGraphPlugin>()
./gradlew :ForceDependencyResolutionPlugin_resolveAllDependencies -I init.gradle.kts --write-locks --write-verification-metadata sha256