Hi, I'm trying to add SKIE to an existing (large) ...
# touchlab-tools
m
Hi, I'm trying to add SKIE to an existing (large) project and I run into a problem when I add SKIE plugin into our iOS umbrella module
Unable to load class 'co.touchlab.skie.plugin.SkieGradlePluginApplier'
(more details in 🧵)
f
Hi! It’s a known problem with the Gradle plugin portal caching
m
Oh I didn't realise that this might affect adding SKIE from scratch. I will try to run that command first
f
Make sure to have this order of repositories for Gradle plugins:
Copy code
repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
Then call:
./gradlew dependencies --refresh-dependencies
m
I see we had different order for these. Thanks trying it out now
f
Yeah, it affects it because the plugin has dependencies on other modules. The issue is that the Gradle plugin portal caching is fundamentally broken and will occasionally only return the pom file and not the jar file for some plugin dependency (that’s why you see the unable to load class error). In the future we plan to ship the plugin as a Fat jar which will hopefully resolve this issue.
m
I have to say - support is 💯 🙂 I didn't even manage to provide more details and you already provided solutions 😄
😄 1
f
😄 Yeah, unfortunately in this case it’s because we’ve seen this issue at least 10 times in the past half a year.
m
Thanks a lot for this 🙏
e
I just got same error.
co.touchlab.skie.plugin.SkieGradlePluginApplier
Solved it following this thread. You guys are awesome. Thanks Anyway one quick clarification... In a multi module kmp project, do we only need to add skie to the umbrella module?
f
yeah, SKIE should only be applied in the module that builds the iOS Framework
🙌 1