Skip to content

Commit d797f5c

Browse files
committed
platform specific jar name ...-1.0-SNAPSHOT-osx-aarch_64.jar
1 parent c4f6fd2 commit d797f5c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Samples/SwiftAndJavaJarSampleLib/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ List<String> swiftProductDylibPaths() {
144144
}.flatten()
145145

146146

147-
println("products = ${products}")
147+
148148
def productDylibPaths = products.collect {
149+
logger.info("[swift-java] Include Swift product: '${it}' in product resource paths.")
149150
"${layout.projectDirectory}/.build/${swiftBuildConfiguration()}/lib${it}.dylib"
150151
}
151-
println("PRODUCT DYLIB PATHS = ${productDylibPaths}")
152152

153153
return productDylibPaths
154154
}
@@ -163,6 +163,10 @@ processResources {
163163
from(dylibs)
164164
}
165165

166+
jar {
167+
archiveClassifier = osdetector.classifier
168+
}
169+
166170
base {
167171
archivesName = "swift-and-java-jar-sample-lib"
168172
}

0 commit comments

Comments
 (0)