Setup dist task to assemble libs for compiler distribution.
Produce special stdlib artifact with annotations for dist. Put js outputs to dist, they're required for JS backend tests. Use kotlin-compiler for maven, which has all required dependencies bundled. Clean local directory repository on clean. Change paths in tests to compiled artifacts.
This commit is contained in:
@@ -23,6 +23,7 @@ compileTestKotlin {
|
||||
|
||||
test {
|
||||
dependsOn cleanCompileTestKotlin
|
||||
dependsOn(':kotlin-runtime:jar')
|
||||
dependsOn(':kotlin-stdlib:originalStdlibJar')
|
||||
|
||||
systemProperties['overwrite.output'] = System.getProperty("overwrite.output", "false")
|
||||
|
||||
@@ -167,11 +167,16 @@ task relocatedSourcesJar(type: Jar) {
|
||||
from "${core}/reflection.jvm/src"
|
||||
}
|
||||
|
||||
artifacts {
|
||||
def artifactJar = [file: file(outputJarPath), builtBy: proguard, name: archivesBaseName]
|
||||
def artifactJar = [file: file(outputJarPath), builtBy: proguard, name: archivesBaseName]
|
||||
|
||||
artifacts {
|
||||
runtime artifactJar
|
||||
archives artifactJar
|
||||
archives relocatedSourcesJar
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
dist {
|
||||
from(proguard)
|
||||
from(relocatedSourcesJar)
|
||||
}
|
||||
|
||||
@@ -26,6 +26,11 @@ artifacts {
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
|
||||
dist {
|
||||
from (jar, sourcesJar)
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.freeCompilerArgs = [
|
||||
"-Xallow-kotlin-package",
|
||||
|
||||
Reference in New Issue
Block a user