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:
Ilya Gorbunov
2017-03-29 08:38:49 +03:00
parent 0b2cadc638
commit 3db1613167
15 changed files with 105 additions and 6 deletions
+7
View File
@@ -41,3 +41,10 @@ artifacts {
archives sourcesJar
archives javadocJar
}
dist {
from (jar, sourcesJar)
from(compileKotlin2Js.kotlinOptions.outputFile) {
into '../../js'
}
}
+4
View File
@@ -21,6 +21,10 @@ artifacts {
archives javadocJar
}
dist {
from (jar, sourcesJar)
}
compileKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-module-name", project.name]
}
+4
View File
@@ -24,6 +24,10 @@ artifacts {
archives javadocJar
}
dist {
from (jar, sourcesJar)
}
compileKotlin {
// TODO: Why "-Xmulti-platfrom" ?
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xmulti-platform", "-module-name", project.archivesBaseName]