Implement publishing in the build

This commit is contained in:
Ilya Chernikov
2017-08-03 15:49:30 +02:00
parent 438525dfff
commit aa4fdaa713
23 changed files with 626 additions and 160 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ dependencies {
compile(project(":js:js.dce"))
compile(ideaSdkCoreDeps(*(rootProject.extra["ideaCoreSdkJars"] as Array<String>)))
compile(commonDep("org.fusesource.jansi", "jansi"))
compile(commonDep("jline"))
compile(commonDep("org.jline", "jline"))
compile(files("${System.getProperty("java.home")}/../lib/tools.jar"))
}
+1 -1
View File
@@ -5,7 +5,7 @@ apply { plugin("kotlin") }
dependencies {
val compile by configurations
compile(kotlinDep("stdlib"))
compile(project(":kotlin-stdlib"))
buildVersion()
}
@@ -498,7 +498,7 @@ class KotlinCoreEnvironment private constructor(
val pluginRoot =
configuration.get(CLIConfigurationKeys.INTELLIJ_PLUGIN_ROOT)?.let(::File)
?: configuration.get(CLIConfigurationKeys.COMPILER_JAR_LOCATOR)?.compilerJar
?: PathUtil.getPathUtilJar().takeIf { it.hasConfigFile(configFilePath) }
?: PathUtil.pathUtilJar.takeIf { it.hasConfigFile(configFilePath) }
// hack for load extensions when compiler run directly from project directory (e.g. in tests)
?: File("idea/src").takeIf { it.hasConfigFile(configFilePath) }
?: throw IllegalStateException("Unable to find extension point configuration $configFilePath")