Zipping sources of endorsed libraries for IDE (#3408)
This commit is contained in:
@@ -216,9 +216,14 @@ task distNativeSources(type: Zip) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task distEndorsedSources {
|
||||||
|
dependsOn(':endorsedLibraries:endorsedLibsSources')
|
||||||
|
}
|
||||||
|
|
||||||
task distSources {
|
task distSources {
|
||||||
dependsOn(distCommonSources)
|
dependsOn(distCommonSources)
|
||||||
dependsOn(distNativeSources)
|
dependsOn(distNativeSources)
|
||||||
|
dependsOn(distEndorsedSources)
|
||||||
}
|
}
|
||||||
|
|
||||||
task distCompiler(type: Copy) {
|
task distCompiler(type: Copy) {
|
||||||
|
|||||||
@@ -33,3 +33,31 @@ targetList.each { target ->
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
endorsedLibrariesList.each { library ->
|
||||||
|
task("${toTaskName(library)}CommonSources", type: Zip) {
|
||||||
|
destinationDirectory = file("${rootProject.projectDir}/dist/sources")
|
||||||
|
archiveFileName = "${library.replaceAll("\\.", "-")}-common-sources.zip"
|
||||||
|
|
||||||
|
includeEmptyDirs = false
|
||||||
|
include('**/*.kt')
|
||||||
|
|
||||||
|
from(project(":endorsedLibraries:${library}").file('src/main/kotlin'))
|
||||||
|
}
|
||||||
|
task("${toTaskName(library)}NativeSources", type: Zip) {
|
||||||
|
destinationDirectory = file("${rootProject.projectDir}/dist/sources")
|
||||||
|
archiveFileName = "${library.replaceAll("\\.", "-")}-native-sources.zip"
|
||||||
|
|
||||||
|
includeEmptyDirs = false
|
||||||
|
include('**/*.kt')
|
||||||
|
|
||||||
|
from(project(":endorsedLibraries:${library}").file('src/main/kotlin-native'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
task endorsedLibsSources {
|
||||||
|
endorsedLibrariesList.each { library ->
|
||||||
|
dependsOn "${toTaskName(library)}CommonSources"
|
||||||
|
dependsOn "${toTaskName(library)}NativeSources"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user