I tried following <https://medium.com/@heyitsmohit...
# arrow-meta
r
I tried following https://medium.com/@heyitsmohit/writing-kotlin-compiler-plugin-with-arrow-meta-cf7b3689aa3e I spent like 4 days figuring out how to add compileOnly “com.github.arrow-kt.arrow-metacompiler plugin-SNAPSHOT" in my project nothing seems to work I tried every possible version tried to look for a solution on forums but none found even chat gpt couldn't help
a
we’re currently migrating to Kotlin 1.8.x, so it might be that the SNAPSHOT version is no longer compatible with what’s mentioned in the article
could you try depending on version 1.6.0?
r
I tried
Copy code
compileOnly("com.github.arrow-kt.arrow-meta:compiler-plugin:1.6.0")
same issue
Copy code
Could not find com.github.arrow-kt.arrow-meta:compiler-plugin:1.6.0.
is there any solution to it?
f
Looks like you are using jipack ? Did you include the jitpack repository? Also make sure the correspondig tag exists in the github repo, I do not see 1.6.0 (https://github.com/arrow-kt/arrow-meta/tags). It's probably easier to use a published dependency: https://mvnrepository.com/artifact/io.arrow-kt/arrow-meta/1.6.0
r
I even tried 1.6.1
Copy code
Could not find com.github.arrow-kt.arrow-meta:compiler-plugin:1.6.1.
I did include jitpack repo and I also used version available in https://github.com/arrow-kt/arrow-meta/tags
even compileOnly("com.github.arrow-kt.arrow-meta:1.6.1") doesn't seem to work
f
you should probably replace the period with a dash:
com.github.arrow-kt:arrow-meta:1.6.1
r
didn't work either
I even straight away cloned a repo from github, gradle build failed for it
It has to do something with the dependency
https://github.com/msya/debuglog-arrow-meta I cloned this repo, this repo even has a dedicated medium post explaining the code
image.png
gradle build failed
now It may be some issue on my end but I don't know how
m
Issue can be a combination of Jitpack and version without a release.
..plugin:-SNAPSHOT
doesn’t seems to be a correct version even for SNAPSHOT. Documentation on Jitpacke states, taht
Copy code
If the project doesn't have any GitHub Releases you can use the short commit hash or 'master-SNAPSHOT' as the version.
Other more critical issue ist, I didn’t find any succeffull build, just had a short look on project, so this may be is also an issue… https://www.jitpack.io/#arrow-kt/arrow-meta