61 lines
1.5 KiB
Kotlin
61 lines
1.5 KiB
Kotlin
/*
|
|
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
|
* that can be found in the license/LICENSE.txt file.
|
|
*/
|
|
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
description = "Kotlin Daemon New"
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
val ktorExcludesForDaemon : List<Pair<String, String>> by rootProject.extra
|
|
|
|
dependencies {
|
|
compile(commonDep("org.fusesource.jansi", "jansi"))
|
|
compile(commonDep("org.jline", "jline"))
|
|
|
|
compileOnly(project(":compiler:cli"))
|
|
compileOnly(project(":compiler:cli-js"))
|
|
compileOnly(project(":compiler:incremental-compilation-impl"))
|
|
compileOnly(project(":daemon-common-new"))
|
|
|
|
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
|
compileOnly(intellijDep()) { includeJars("trove4j") }
|
|
|
|
runtime(project(":kotlin-reflect"))
|
|
|
|
embedded(project(":daemon-common")) { isTransitive = false }
|
|
embedded(project(":daemon-common-new")) { isTransitive = false }
|
|
compile(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) {
|
|
isTransitive = false
|
|
}
|
|
compile(commonDep("io.ktor", "ktor-network")) {
|
|
ktorExcludesForDaemon.forEach { (group, module) ->
|
|
exclude(group = group, module = module)
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {}
|
|
}
|
|
|
|
publish()
|
|
|
|
noDefaultJar()
|
|
|
|
runtimeJar(tasks.register<ShadowJar>("shadowJar")) {
|
|
from(mainSourceSet.output)
|
|
}
|
|
|
|
sourcesJar()
|
|
|
|
javadocJar()
|