Disable outdate runtime check for developers builds
We can't update them properly anyway.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user