https://kotlinlang.org logo
#ktor
Title
# ktor
b

bod

02/29/2024, 3:35 PM
👋 Trying to debug an issue, I'm trying to publish Ktor locally so I can try my changes on my project.
./gradlew publishToMavenLocal
seems to only publish the
ktor-bom
artifact - what am I missing?
a

Aleksei Tirman [JB]

02/29/2024, 3:57 PM
Have you got any error during the publication?
b

bod

02/29/2024, 3:59 PM
No, it's a successful build. I should have mentioned I'm on the 2.3.8 branch, if that changes anything.
a

Aleksei Tirman [JB]

02/29/2024, 5:00 PM
Maybe there is a conflict with artifacts from the maven central repository.
Or have you changed the version ID?
b

bod

02/29/2024, 5:01 PM
I haven't - but shouldn't I be able to publish locally no matter what?
a

Aleksei Tirman [JB]

02/29/2024, 5:02 PM
You should be able to do it anyway. How do you check the publishing status?
b

bod

02/29/2024, 5:03 PM
I just had a look at
~/.m2/repository/io/ktor
and only
ktor-bom
is there. But also I can see that the build is very fast, and nothing is being compiled 😅. I suppose this should take a few minutes.
a

Aleksei Tirman [JB]

02/29/2024, 5:06 PM
I will try to build it myself and will share the results.
b

bod

02/29/2024, 5:06 PM
thanks a lot 🙏
a

Aleksei Tirman [JB]

02/29/2024, 5:09 PM
I've got the compilation error:
Copy code
> Task :ktor-utils:compileKotlinJvm FAILED
e: file:///home/stexe/projects/ktor/ktor-utils/jvm/src/io/ktor/util/cio/ReadersJvm.kt:14:2 Unresolved reference: InternalAPI
🤔 1
e

e5l

02/29/2024, 5:12 PM
Could you try it with
--no-build-cache
argument?
👀 1
b

bod

02/29/2024, 5:13 PM
Could you try it with
--no-build-cache
argument?
Same thing
Just tried on the
main
branch and
publishToMavenLocal
works as expected there. So I guess it's a problem only on 2.x. That's ok for me I can continue experimenting on 3.x instead.