Why is it that JB annotations (`@Language`) are so...
# getting-started
c
Why is it that JB annotations (
@Language
) are sometimes available by default and sometimes not? What decides it?
h
It is a jvm annotation library added to the jvm sourceset by default.
c
h
The library is, but the std lib depends on an older version that’s JVM only.
c
I see
and I'm guessing that the reason I can use it here: https://gitlab.com/opensavvy/ktmongo/-/blob/main/dsl/src/commonMain/kotlin/query/FilterQuery.kt?ref_type=heads#L2787 is because it's a multiplatform module with only JVM?
So the day I add another platform it won't compile anymore?
👌 1
h
You can always override the annotation library with a higher version. Don’t know if language is compile only
c
Do you know if it's planned to make the stdlib depend on the multiplatform version?
h
KT-25047
🙏 1