Apply rri/yole/modularize, create gradle run configuration for IDEA
This commit is contained in:
committed by
Ilya Chernikov
parent
7cb8a90513
commit
360a692af8
@@ -0,0 +1,45 @@
|
||||
apply { plugin("kotlin") }
|
||||
|
||||
dependencies {
|
||||
|
||||
compile(ideaSdkDeps("*.jar"))
|
||||
compileOnly(project(":idea"))
|
||||
compileOnly(project(":idea:idea-maven"))
|
||||
compileOnly(project(":idea:idea-gradle"))
|
||||
compileOnly(project(":idea:idea-jvm"))
|
||||
|
||||
runtimeOnly(files(toolsJar()))
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
val runIde by task<JavaExec> {
|
||||
dependsOn(":dist", ":prepare:kotlin-plugin:idea-plugin", ":dist-plugin")
|
||||
|
||||
classpath = the<JavaPluginConvention>().sourceSets["main"].runtimeClasspath
|
||||
|
||||
main = "com.intellij.idea.Main"
|
||||
|
||||
workingDir = File(rootDir, "ideaSDK", "bin")
|
||||
|
||||
val pluginPath = File(rootDir, "dist", "artifacts", "Kotlin")
|
||||
|
||||
jvmArgs(
|
||||
"-Xmx1250m",
|
||||
"-XX:ReservedCodeCacheSize=240m",
|
||||
"-XX:+HeapDumpOnOutOfMemoryError",
|
||||
"-ea",
|
||||
"-Didea.is.internal=true",
|
||||
"-Didea.debug.mode=true",
|
||||
"-Didea.system.path=../system-idea",
|
||||
"-Didea.config.path=../config-idea",
|
||||
"-Dapple.laf.useScreenMenuBar=true",
|
||||
"-Dapple.awt.graphics.UseQuartz=true",
|
||||
"-Dsun.io.useCanonCaches=false",
|
||||
"-Dplugin.path=${pluginPath.absolutePath}",
|
||||
"-Dkotlin.internal.mode.enabled=true",
|
||||
"-Didea.additional.classpath=../idea-kotlin-runtime/kotlin-runtime.jar,../idea-kotlin-runtime/kotlin-reflect.jar"
|
||||
)
|
||||
args()
|
||||
}
|
||||
Reference in New Issue
Block a user