does amper support compileOnly and runtimeOnly dep...
# amper
c
does amper support compileOnly and runtimeOnly deps? is there currently a way to centrally define library versions?
a
does amper support compileOnly and runtimeOnly deps?
Is this what you’re asking about? https://github.com/JetBrains/amper/blob/0.1/docs/Documentation.md#scopes-and-visibility
is there currently a way to centrally define library versions?
Could you please elaborate? Do you mean dependency or a library you’re working on?
c
of a dependency, like define the jackson version at one place or the kotlin coroutines version at one place and use that then for multiple dependencies. some libs have boms so that would be cool but there are also libs that don’t have boms where you just want a variable
thanks for the scopes docs, exactly what I needed
a
of a dependency, like define the jackson version at one place or the kotlin coroutines version at one place and use that then for multiple dependencies. some libs have boms so that would be cool but there are also libs that don’t have boms where you just want a variable
Sounds like dependency catalogs to me or at least a part of it. They are not fully designed yet, but they’re on our nearest plans. Currently, they work for a small set of pre-defined dependencies. You can find them by typing
$
and looking at the completion list. Could they solve your problem?
c
sounds good but when I type $ i get no completion list
oh sorry n/m looked at the docs now
r
Is there an issue on a tracker somewhere we can follow for when Gradle Versions Catalogs are supported?
a
There’s no user-visible issue. It looks like we might need to adjust our current workflow. We’ll discuss it internally. But in general, we aim to show something in the next release that’s expected to happen in Q1 2024.
👍 1