https://kotlinlang.org logo
#touchlab-tools
Title
# touchlab-tools
j

Jordi Saumell

10/04/2023, 2:59 PM
Hello everyone! I'm facing an issue with KMMBridge (v0.3.7): the task "kmmBridgePublish" is not being generated. I've seen it in troubleshooting but I have enabled it in several ways without success: • as a P parameter when executing the task in terminal ( -PENABLE_PUBLISHING=true ) • setting it in gradle.properties • setting it as ext in the build.gradle project configuration I have tried in two computers, and in one I got it to work after deleting the gradle cache. But in the other one it does not work even with the workaround of deleting the cache. This is the KMMBridge setup code:
Copy code
kmmbridge {
    mavenPublishArtifacts()
    githubReleaseVersions()
    spm()
    versionPrefix.set("0.1")
}
addGithubPackagesRepository()
Does anyone know about what I might be missing, or a way to debug this? If I create a task that does the same check that is done in
ProjectExtensions::findStringProperty
it does find the property, by the way
r

russhwolf

10/04/2023, 10:27 PM
If you can point to a project that reproduces this, it would help. But also, some big updates coming soon which might make the issue obsolete.
At a glance, it looks like you're doing the right thing so I'm not sure what's going wrong without having something I can run.
2 Views