Skip to content

Commit 3735528

Browse files
committed
build: fix license bundling
1 parent bff799a commit 3735528

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ffmpeg/build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,21 @@ val compileNative = if (deployNative) {
5050
} else null
5151

5252
fun AbstractCopyTask.licenses() {
53-
from(layout.projectDirectory.files("LICENSE.*", "COPYING.*", "COPYRIGHT.*", "Copyright.*")) {
53+
from(layout.projectDirectory) {
54+
include("LICENSE.*", "COPYING.*", "COPYRIGHT.*", "Copyright.*")
5455
rename { "ffmpeg-static-$it" }
5556
}
56-
from(rootProject.layout.projectDirectory.files("LICENSE", "THIRDPARTY_LICENSES")) {
57+
from(rootProject.layout.projectDirectory) {
58+
include("LICENSE", "THIRDPARTY_LICENSES")
5759
rename { "ffmpeg-static-$it" }
5860
}
5961
}
6062

6163
val nativesJar = if (deployNative) {
6264
tasks.register<Jar>("nativesJar") {
6365
// Required for configuration cache
64-
val platform = platformString?.let { Platform(it, platformExtension) } ?: NativePlatform.platform(platformExtension)
66+
val platform =
67+
platformString?.let { Platform(it, platformExtension) } ?: NativePlatform.platform(platformExtension)
6568

6669
from(compileNative!!.get().outputs.files) {
6770
include("lib/*.so")

0 commit comments

Comments
 (0)