Implement ultimate-runner
This commit is contained in:
committed by
Ilya Chernikov
parent
cf7312dea8
commit
bcd31de84a
@@ -4126,5 +4126,40 @@
|
||||
"defaultArtifacts": "org.gradle.api.internal.plugins.DefaultArtifactPublicationSet",
|
||||
"reporting": "org.gradle.api.reporting.ReportingExtension"
|
||||
}
|
||||
},
|
||||
":ultimate:ultimate-runner": {
|
||||
"conventions": {
|
||||
"base": "org.gradle.api.plugins.BasePluginConvention",
|
||||
"java": "org.gradle.api.plugins.JavaPluginConvention"
|
||||
},
|
||||
"configurations": [
|
||||
"apiElements",
|
||||
"archives",
|
||||
"compile",
|
||||
"compileClasspath",
|
||||
"compileOnly",
|
||||
"default",
|
||||
"implementation",
|
||||
"kapt",
|
||||
"kaptTest",
|
||||
"runtime",
|
||||
"runtimeClasspath",
|
||||
"runtimeElements",
|
||||
"runtimeOnly",
|
||||
"testCompile",
|
||||
"testCompileClasspath",
|
||||
"testCompileOnly",
|
||||
"testImplementation",
|
||||
"testRuntime",
|
||||
"testRuntimeClasspath",
|
||||
"testRuntimeOnly"
|
||||
],
|
||||
"extensions": {
|
||||
"ext": "org.gradle.api.plugins.ExtraPropertiesExtension",
|
||||
"kotlin": "org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension",
|
||||
"kapt": "org.jetbrains.kotlin.gradle.plugin.KaptExtension",
|
||||
"defaultArtifacts": "org.gradle.api.internal.plugins.DefaultArtifactPublicationSet",
|
||||
"reporting": "org.gradle.api.reporting.ReportingExtension"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -127,6 +127,7 @@ include ":kotlin-build-common",
|
||||
":examples:kotlin-jsr223-local-example",
|
||||
":examples:kotlin-jsr223-daemon-local-eval-example",
|
||||
":ultimate",
|
||||
":ultimate:ultimate-runner",
|
||||
|
||||
// plugin markers:
|
||||
':kotlin-gradle-plugin:plugin-marker',
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
apply { plugin("kotlin") }
|
||||
|
||||
dependencies {
|
||||
|
||||
compile(ideaUltimateSdkDeps("*.jar"))
|
||||
compileOnly(project(":idea"))
|
||||
compileOnly(project(":idea:idea-maven"))
|
||||
compileOnly(project(":idea:idea-gradle"))
|
||||
compileOnly(project(":idea:idea-jvm"))
|
||||
|
||||
runtimeOnly(files(toolsJar()))
|
||||
}
|
||||
|
||||
|
||||
val runUltimate by task<JavaExec> {
|
||||
dependsOn(":dist", ":prepare:kotlin-plugin:idea-plugin", ":dist-plugin", ":ultimate:idea-ultimate-plugin")
|
||||
|
||||
classpath = the<JavaPluginConvention>().sourceSets["main"].runtimeClasspath
|
||||
|
||||
main = "com.intellij.idea.Main"
|
||||
|
||||
workingDir = File(projectDir.parentFile, "ideaSDK", "bin")
|
||||
|
||||
val ideaUltimatePluginDir: File by rootProject.extra
|
||||
|
||||
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=${ideaUltimatePluginDir.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