When upgrading from KMMBridge 1.0.1 to 1.1.0, I lo...
# touchlab-tools
n
When upgrading from KMMBridge 1.0.1 to 1.1.0, I lost the
kmmBridgePublish
task, this doesn't appear to be intended (I'm using
co.touchlab.kmmbridge
since we're not using GitHub). Anyone have any ideas?
Copy code
listOf(
        iosX64(),
        iosArm64(),
        iosSimulatorArm64()
    ).forEach {
        it.binaries {
            framework("Foo") {
                isStatic = true
            }
        }
    }

...

kmmbridge {
    spm(spmDirectory = ".") {
        iOS { v("14") }
    }
    mavenPublishArtifacts()
}
k
Where are you seeing the error about not having that task?
n
Copy code
FAILURE: Build failed with an exception.

* What went wrong:
Task 'kmmBridgePublish' not found in root project 'XXX'.
k
In CI or locally, and what is the full command you are running?
kmmBridgePublish is not registered unless
-PENABLE_PUBLISHING=true
is added to the command line. That's been true for several versions, though, so if nothing else changed when you moved to 1.1.0, then something else is happening.
n
Run locally, but I didn't have
ENABLE_PUBLISHING=true
With 1.0.1 it was there without that, but sounds like I should be adding that 🙂
Thanks!
k
With 1.0.1 it was there without that
I'll check, but if it was, it was an error of some kind.