Convert the rest of the project to intellij repo prepared in buildSrc

This commit is contained in:
Ilya Chernikov
2017-12-08 23:19:21 +01:00
committed by Vyacheslav Gerasimov
parent e23b1529b3
commit 7e21573cf4
55 changed files with 451 additions and 997 deletions
+5 -14
View File
@@ -51,10 +51,6 @@ val compiledModulesSources = compilerModules.map {
project(it).the<JavaPluginConvention>().sourceSets.getByName("main").allSource
}
configureIntellijPlugin {
setExtraDependencies("intellij-core", "jps-standalone")
}
dependencies {
compilerModules.forEach {
fatJarContents(project(it)) { isTransitive = false }
@@ -82,16 +78,11 @@ dependencies {
compile(project(":kotlin-stdlib"))
compile(project(":kotlin-script-runtime"))
compile(project(":kotlin-reflect"))
}
afterEvaluate {
dependencies {
fatJarContents(intellijCoreJar())
fatJarContents(intellijCoreJarDependencies { exclude("jdom.jar", "log4j.jar") })
fatJarContents(intellij { include("jna-platform.jar") })
fatJarContentsStripServices(intellijExtra("jps-standalone") { include("jps-model.jar") })
fatJarContentsStripMetadata(intellij { include("oromatcher.jar", "jdom.jar", "log4j.jar") })
}
fatJarContents(intellijCoreDep()) { includeJars("intellij-core") }
fatJarContents(intellijDep()) { includeIntellijCoreJarDependencies(project, { !(it.startsWith("jdom") || it.startsWith("log4j")) }) }
fatJarContents(intellijDep()) { includeJars("jna-platform") }
fatJarContentsStripServices(intellijDep("jps-standalone")) { includeJars("jps-model") }
fatJarContentsStripMetadata(intellijDep()) { includeJars("oromatcher", "jdom", "log4j") }
}