[Commonizer] Fix Gradle module dependencies

This commit is contained in:
Dmitriy Dolovov
2020-05-25 17:43:53 +07:00
parent b5245e2df6
commit 0827d2e8a3
+8 -10
View File
@@ -12,6 +12,10 @@ val mavenCompileScope by configurations.creating {
.addMapping(0, this, COMPILE) .addMapping(0, this, COMPILE)
} }
configurations {
runtimeOnly.get().extendsFrom(compileOnly.get())
}
description = "Kotlin KLIB Library Commonizer" description = "Kotlin KLIB Library Commonizer"
dependencies { dependencies {
@@ -25,13 +29,10 @@ dependencies {
// This dependency is necessary to keep the right dependency record inside of POM file: // This dependency is necessary to keep the right dependency record inside of POM file:
mavenCompileScope(project(":kotlin-compiler")) mavenCompileScope(project(":kotlin-compiler"))
compile(kotlinStdlib()) api(kotlinStdlib())
testCompile(commonDep("junit:junit")) testImplementation(commonDep("junit:junit"))
testCompile(projectTests(":compiler:tests-common")) testImplementation(projectTests(":compiler:tests-common"))
testCompile(project(":native:frontend.native"))
testCompile(intellijCoreDep()) { includeJars("intellij-core") }
} }
val runCommonizer by tasks.registering(NoDebugJavaExec::class) { val runCommonizer by tasks.registering(NoDebugJavaExec::class) {
@@ -40,10 +41,7 @@ val runCommonizer by tasks.registering(NoDebugJavaExec::class) {
} }
sourceSets { sourceSets {
"main" { "main" { projectDefault() }
projectDefault()
runtimeClasspath += configurations.compileOnly
}
"test" { projectDefault() } "test" { projectDefault() }
} }