Refactor: project renaming, using improved build dsl

This commit is contained in:
Ilya Chernikov
2017-09-11 14:47:07 +02:00
parent 8e24383428
commit b6c255cea5
24 changed files with 209 additions and 217 deletions
+9 -21
View File
@@ -1,40 +1,28 @@
import org.gradle.jvm.tasks.Jar
description = "Kotlin Build Common"
apply { plugin("kotlin") }
dependencies {
val compile by configurations
val compileOnly by configurations
val testCompile by configurations
val testCompileOnly by configurations
val testRuntime by configurations
compile(project(":core:util.runtime"))
compile(project(":compiler:util"))
compile(project(":compiler:cli-common"))
compile(project(":compiler:frontend.java"))
compile(ideaSdkDeps("util"))
buildVersion()
testCompile(commonDep("junit:junit"))
testCompile(project(":compiler.tests-common"))
testCompile(protobufFull())
testRuntime(project(":kotlin-stdlib"))
testRuntime(project(":kotlin-reflect"))
}
configureKotlinProjectSourcesDefault()
configureKotlinProjectTestsDefault()
val jar: Jar by tasks
jar.apply {
setupRuntimeJar("Kotlin Build Common")
baseName = "kotlin-build-common"
sourceSets {
"main" { projectDefault() }
"test" { projectDefault() }
}
testsJar {}
runtimeJar()
tasks.withType<Test> {
workingDir = rootDir
systemProperty("idea.is.unit.test", "true")
systemProperty("NO_FS_ROOTS_ACCESS_CHECK", "true")
ignoreFailures = true
}
testsJar()
projectTest()