浏览代码

Exclude Kotlin RC and M releases

Josh Cummings 4 年之前
父节点
当前提交
b206670245
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      build.gradle

+ 8 - 0
build.gradle

@@ -87,6 +87,14 @@ updateDependenciesSettings {
 				if (candidate.getGroup().equals("org.opensaml")) {
 					selection.reject("org.opensaml maintains two different versions, so it must be updated manually");
 				}
+				if (candidate.getGroup().equals("org.jetbrains.kotlin")) {
+					if (candidate.getVersion().endsWith("-RC")) {
+						selection.reject("On a maintenance branch, we should not take RC versions")
+					}
+					if (candidate.getVersion().contains("-M")) {
+						selection.reject("On a maintenance branch, we should not take milestone versions")
+					}
+				}
 			}
 		}
 	}