https://kotlinlang.org logo
#amper
Title
# amper
c

christophsturm

12/06/2023, 2:10 PM
does amper support compileOnly and runtimeOnly deps? is there currently a way to centrally define library versions?
a

artspb

12/06/2023, 4:28 PM
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

christophsturm

12/06/2023, 6:58 PM
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

artspb

12/07/2023, 8:16 AM
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

christophsturm

12/07/2023, 8:49 AM
sounds good but when I type $ i get no completion list
oh sorry n/m looked at the docs now
r

ribesg

12/12/2023, 3:48 PM
Is there an issue on a tracker somewhere we can follow for when Gradle Versions Catalogs are supported?
a

artspb

12/13/2023, 7:50 AM
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
4 Views