Fix bundle build (#3455)

This commit is contained in:
LepilkinaElena
2019-10-11 13:25:41 +03:00
committed by GitHub
parent 3eefdad759
commit ee391191ed
2 changed files with 6 additions and 12 deletions
+6 -5
View File
@@ -226,11 +226,11 @@ task distSources {
dependsOn(distEndorsedSources)
}
def jarContent(def jarTask, FileTree baseFileTree) {
def jarContent(def jarTask, FileTree baseFileTree, Iterable<String> excludedList = []) {
jarTask.from {
baseFileTree
.matching { include("*.jar") }
.collect { zipTree("${it.absolutePath}") }
.collect { zipTree("${it.absolutePath}").matching { exclude(excludedList) } }
}
}
@@ -243,13 +243,14 @@ task mergeJars(type: Jar) {
archiveFileName = 'kotlin-native.jar'
destinationDirectory = file("$distDir/konan/lib")
jarContent(it, project(':backend.native').fileTree('build/external_jars'),
['META-INF/services/org.jetbrains.kotlin.resolve.ExternalOverridabilityCondition'])
jarContent(it, project(':backend.native').fileTree('build/libs'))
jarContent(it, project(':utilities').fileTree('build/libs'))
jarContent(it, project('Interop').fileTree('Runtime/build/libs'))
jarContent(it, project('Interop').fileTree('Indexer/build/libs'))
jarContent(it, project('Interop').fileTree('StubGenerator/build/libs'))
jarContent(it, project(':backend.native').fileTree('build/external_jars'))
jarContent(it, project(':utilities').fileTree('build/libs'))
jarContent(it, project(':klib').fileTree('build/libs'))
jarContent(it, project(':endorsedLibraries:kotlinx.cli').fileTree('build/libs'))
@@ -1,7 +0,0 @@
depends = CFNetwork CoreFoundation Foundation Security darwin posix
language = Objective-C
package = platform.ARDisplayDevice
modules = ARDisplayDevice
compilerOpts = -framework ARDisplayDevice
linkerOpts = -framework ARDisplayDevice