Move deprecated kotlin-runtime and reduced runtime for tests into stdlib
Rename mock-runtime-for-test project to kotlin-stdlib:jvm-minimal-for-test
This commit is contained in:
committed by
Stanislav Erokhin
parent
c796e5338b
commit
5c0cc5f799
@@ -0,0 +1,51 @@
|
||||
description 'Kotlin Runtime (deprecated, use kotlin-stdlib artifact instead)'
|
||||
|
||||
apply plugin: 'kotlin'
|
||||
|
||||
configureJvm6Project(project)
|
||||
configureDist(project)
|
||||
configurePublishing(project)
|
||||
|
||||
dependencies {
|
||||
compile group: 'org.jetbrains', name: 'annotations', version:'13.0'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
if(!System.properties.'idea.active') {
|
||||
java {
|
||||
srcDir "${rootDir}/core/builtins/src"
|
||||
srcDir "${rootDir}/libraries/stdlib/jvm/runtime"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
jar {
|
||||
manifestAttributes(manifest, project, 'Main')
|
||||
from("${rootDir}/dist/builtins")
|
||||
}
|
||||
|
||||
sourcesJar {
|
||||
classifier = 'sources'
|
||||
from sourceSets.main.kotlin
|
||||
from "${rootDir}/core/builtins/native"
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs = [
|
||||
"-Xallow-kotlin-package",
|
||||
"-Xnormalize-constructor-calls=enable",
|
||||
"-Xdump-declarations-to=${buildDir}/runtime-declarations.json",
|
||||
"-cp", "${rootDir}/dist/builtins",
|
||||
"-module-name", project.name
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user