Skip to content

Commit a5e5b61

Browse files
committed
Version Recommendation: Filter more things that are not stable versions
Fixes #11
1 parent 8e0eadb commit a5e5b61

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/main/java/de/jjohannes/gradle/moduledependencies/tasks/RecommendModuleVersionsReportTask.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,15 @@ public void report() {
6969
}
7070

7171
components.all(c -> {
72-
String version = c.getId().getVersion();
73-
if (version.contains("beta") || version.contains("alpha")) {
74-
c.setStatus("milestone");
72+
String lcVersion = c.getId().getVersion().toLowerCase();
73+
if (lcVersion.contains("alpha")
74+
|| lcVersion.contains("-b")
75+
|| lcVersion.contains("beta")
76+
|| lcVersion.contains("cr")
77+
|| lcVersion.contains("m")
78+
|| lcVersion.contains("rc")) {
79+
80+
c.setStatus("integration");
7581
}
7682
});
7783

0 commit comments

Comments
 (0)