001 /*
002 * Copyright 2010-2016 JetBrains s.r.o.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017 package org.jetbrains.kotlin.config;
018
019 public class KotlinCompilerVersion {
020 // The value of this constant is generated by the build script
021 // DON'T MODIFY IT
022 public static final String VERSION = "1.1.1";
023
024 // True if this compiler is of a non-stable (EAP or Beta) version.
025 // Binaries produced by this compiler can not be loaded by release versions of the compiler.
026 // Change this value before and after every major release
027 public static final boolean IS_PRE_RELEASE = false;
028
029 static {
030 if (!VERSION.equals("1.1.1") && !VERSION.contains("-") && IS_PRE_RELEASE) {
031 throw new IllegalStateException(
032 "IS_PRE_RELEASE cannot be true for a compiler without '-' in its version.\n" +
033 "Please change IS_PRE_RELEASE to false, commit and push this change to master"
034 );
035 }
036 }
037 }