Hi!, I've just seen SKIE is open source now which ...
# touchlab-tools
j
Hi!, I've just seen SKIE is open source now which is fantastic, thanks so much! I've tried adding the plugin to my project but it seems to fail here: https://github.com/touchlab/SKIE/blob/main/SKIE/skie-gradle/plugin-loader/src/main/kotlin/co/touchlab/skie/plugin/SkieLoaderPlugin.kt#L68
> Failed to apply plugin 'co.touchlab.skie'.
> Could not resolve all dependencies for configuration ':detachedConfiguration1'.
> Cannot resolve external dependency co.touchlab.skiegradle plugin0.4.18 because no repositories are defined.
I'm using Kotlin 1.9.0 and gradle 8.2.1 This is just while syncing the project, I can sync the demo project just fine. I also updated the demo to 1.9.0 and 8.2.1 and it works. I have the repositories set in settings.gradle.kts as it says to in the SKIE documentation
k
Hmm. Weird. I have the same issue myself on my machine, but others did not, and running Gradle on the command line works, so I assumed it was some weird Intellij/cache thing. Since you're getting that, it must be something else. We were thinking some kind of CDN issue, but that doesn't exactly make sense.
Will definitely dig into it in the morning. I think first step will be to just post a different version and see if the problems "go away magically". Can you try running on the command line, btw?
j
I tried building the app from Xcode (which uses embedAndSignAppleFrameworkForXcode), and also running
./gradlew build
on the command line and both give the same error.
k
Hmm
j
thanks for your prompt reply 🙂 I'll try some more brute forcing the difference between my project and the demo project in the morning, and hopefully that will shed some light
k
Does the demo project work? That would be good info indeed.
j
k
Wow. The wild bit is that's what fails for me, but nobody else.
And, only the last public release of SKIE. It has been working fine otherwise.
j
Hmm i tried 0.4.17 and it gave the same error, 0.4.13 printed out an error something about it couldn’t find the Kotlin plugin but the sync succeeded. Then my laptop ran out of battery which I’m taking as a sign to go to bed as it’s midnight for me😂 I’ll try creating a new project and adding build config from my project in steps until it fails in the morning
😄 1
k
Older versions may be "weird", but good info.
t
Hey Jonathan, thanks for reporting this. It says that no repositories are defined, which is quite weird. Could you share your
settings.gradle.kts
and possibly any
buildscript { }
block that you might have in your
build.gradle.kts
files? Thanks!
j
Here's my settings.gradle.kts
and my root build.gradle.kts
t
And could you also show the
build.gradle.kts
of the module you added SKIE to?
j
yep here it is:
t
And
buildSrc/build.gradle.kts
😬
j
t
Super weird. Could be one of the convention plugins you have (
convention.swiftgen
or
convention.androidconfig
), but those Gradle files look okay. Or possibly the
${rootProject.rootDir}/config/versioning.gradle
file
But it's weird, because you'd have to be removing the buildscript repositories somehow
Thank you so much for sharing these files, I'll try to reproduce the issue
Our dependencies are a bit weird in that they come from the versioning.gradle. Need to move to version catalogs but haven't got round to it yet
t
Oh interesting, could you share the versioning.gradle too?
j
there's also the buildSrc gradle.properties referenced from that that has the kotlin_version
gradle.properties
(which is the same as the root gradle.properties)
t
Thanks, I'll see what I can do to reproduce it. Oh, what Gradle version are you on?
j
Gradle 8.2.1
t
Yeah, that won't be it either
You're applying the skie plugin in the
:shared
module, right?
j
yep
t
Thanks. Get yourself some sleep and I'll try to reproduce. I'll let you know how it went 🙂
j
Thanks so much for looking into it! I've been eager for SKIE since I saw it in Kevin's talk in KotlinConf 😄
t
I was able to reproduce it, finally.
I probably even found a fix, but our CI's got a bad day it seems so I'll be able to release a new version tomorrow. I'll let you know! I was able to publish version
0.4.19
. Please give it a try and let me know if it works, thanks!
j
yep this works now, thanks for finding and fixing it!