Build: Centralize compiler dist build logic in :kotlin-compiler project
This commit is contained in:
@@ -2,9 +2,13 @@ description = 'Kotlin Test for JS'
|
||||
|
||||
apply plugin: 'kotlin-platform-js'
|
||||
|
||||
configureDist(project)
|
||||
configurePublishing(project)
|
||||
|
||||
configurations {
|
||||
sources
|
||||
distJs
|
||||
}
|
||||
|
||||
dependencies {
|
||||
expectedBy project(':kotlin-test:kotlin-test-common')
|
||||
expectedBy project(':kotlin-test:kotlin-test-annotations-common')
|
||||
@@ -44,17 +48,10 @@ task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
sources sourcesJar
|
||||
distJs(file(compileKotlin2Js.kotlinOptions.outputFile)) {
|
||||
builtBy(compileKotlin2Js)
|
||||
}
|
||||
}
|
||||
|
||||
javadocJar()
|
||||
|
||||
task distJs(type: Copy) {
|
||||
dependsOn(compileKotlin2Js)
|
||||
from(compileKotlin2Js.kotlinOptions.outputFile)
|
||||
into "$distDir/js"
|
||||
}
|
||||
|
||||
dist {
|
||||
dependsOn distJs
|
||||
from (jar, sourcesJar)
|
||||
}
|
||||
Reference in New Issue
Block a user