https://kotlinlang.org logo
Title
r

Raehat Singh Nanda

03/16/2023, 1:05 PM
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-meta:compiler-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

Alejandro Serrano Mena

03/16/2023, 1:54 PM
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

Raehat Singh Nanda

03/16/2023, 1:55 PM
I tried
compileOnly("com.github.arrow-kt.arrow-meta:compiler-plugin:1.6.0")
same issue
Could not find com.github.arrow-kt.arrow-meta:compiler-plugin:1.6.0.
is there any solution to it?
f

Francis Reynders

03/16/2023, 4:40 PM
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

Raehat Singh Nanda

03/16/2023, 5:28 PM
I even tried 1.6.1
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

Francis Reynders

03/16/2023, 5:41 PM
you should probably replace the period with a dash:
com.github.arrow-kt:arrow-meta:1.6.1
r

Raehat Singh Nanda

03/16/2023, 5:51 PM
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

Michal Harakal

03/29/2023, 5:41 PM
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
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