Refactor and clean preloader project

This commit is contained in:
Ilya Chernikov
2017-09-11 13:06:15 +02:00
parent 1d56730538
commit 513ab08edd
11 changed files with 27 additions and 23 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ dependencies {
val compile by configurations
compile(project(":build-common"))
compile(project(":compiler:cli-common"))
compile(project(":compiler:preloader"))
compile(project(":kotlin-preloader"))
compile(project(":compiler:frontend.java"))
compile(project(":compiler:daemon-common"))
compile(project(":compiler:daemon-client"))
+11 -11
View File
@@ -1,5 +1,5 @@
import org.gradle.jvm.tasks.Jar
description = "Kotlin Preloader"
apply { plugin("kotlin") }
@@ -9,17 +9,17 @@ dependencies {
buildVersion()
}
configureKotlinProjectSources("src", "instrumentation/src")
configureKotlinProjectNoTests()
sourceSets {
"main" {
java {
srcDirs( "src", "instrumentation/src")
}
}
"test" { none() }
}
val jar: Jar by tasks
jar.apply {
setupRuntimeJar("Kotlin Preloader")
runtimeJar {
manifest.attributes.put("Main-Class", "org.jetbrains.kotlin.preloading.Preloader")
archiveName = "kotlin-preloader.jar"
}
dist {
from(jar)
}
dist()
+1 -1
View File
@@ -26,7 +26,7 @@ dependencies {
testCompile(project(":kotlin-runtime"))
testCompile(project(":kotlin-reflect"))
testCompile(projectTests(":compiler"))
testRuntime(project(":compiler:preloader"))
testRuntime(project(":kotlin-preloader"))
testRuntime(ideaSdkCoreDeps("*.jar"))
testRuntime(ideaSdkDeps("*.jar"))
}