Disable outdate runtime check for developers builds

We can't update them properly anyway.
This commit is contained in:
Nikolay Krasko
2018-02-15 15:30:16 +03:00
parent 86dfc1ae2c
commit d868c01671
2 changed files with 5 additions and 0 deletions
@@ -35,4 +35,8 @@ public class KotlinPluginUtil {
public static boolean isSnapshotVersion() {
return "@snapshot@".equals(getPluginVersion());
}
public static boolean isDevVersion() {
return getPluginVersion().contains("-dev-");
}
}
@@ -39,6 +39,7 @@ data class VersionedLibrary(val library: Library, val version: String?, val used
fun findOutdatedKotlinLibraries(project: Project): List<VersionedLibrary> {
val pluginVersion = KotlinPluginUtil.getPluginVersion()
if (KotlinPluginUtil.isSnapshotVersion()) return emptyList() // plugin is run from sources, can't compare versions
if (KotlinPluginUtil.isDevVersion()) return emptyList()
if (project.isDisposed) return emptyList()
// user already clicked suppress