Skip to content

Commit 27f24a5

Browse files
committed
Mark version selectors with JvmStatic
Fixes #171
1 parent 1922c10 commit 27f24a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/src/main/kotlin/nl/littlerobots/vcu/plugin/resolver/VersionSelectors.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class VersionSelectors {
2727
/**
2828
* Select the latest version
2929
*/
30+
@JvmStatic
3031
val LATEST = object : ModuleVersionSelector {
3132
override fun select(candidate: ModuleVersionCandidate): Boolean {
3233
return true
@@ -35,6 +36,7 @@ class VersionSelectors {
3536
/**
3637
* Select only stable versions
3738
*/
39+
@JvmStatic
3840
val STABLE = object : ModuleVersionSelector {
3941
override fun select(candidate: ModuleVersionCandidate): Boolean {
4042
return isStable(candidate.candidate.version)
@@ -44,6 +46,7 @@ class VersionSelectors {
4446
/**
4547
* Select an unstable version if the current version is also unstable, otherwise select a stable version.
4648
*/
49+
@JvmStatic
4750
val PREFER_STABLE = object : ModuleVersionSelector {
4851
override fun select(candidate: ModuleVersionCandidate): Boolean {
4952
return (!isStable(candidate.candidate.version) && !isStable(candidate.currentVersion)) || isStable(candidate.candidate.version)

0 commit comments

Comments
 (0)