Skip to content

Commit c5bff6d

Browse files
committed
build: include licenses in artifacts
1 parent 562db86 commit c5bff6d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ffmpeg/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ val nativesJar = if (deployNative) {
6363
}
6464
into("natives/$platform/")
6565
}
66+
from(layout.projectDirectory.files("LICENSE.*", "COPYING.*", "COPYRIGHT.*", "Copyright.*"))
67+
from(rootProject.layout.projectDirectory.file("LICENSE")) {
68+
rename { "LICENSE.ffmpeg-static" }
69+
}
6670
}
6771
} else null
6872

@@ -74,6 +78,10 @@ val zipBuild = if (deployNative) {
7478
include("lib/**/*")
7579
include("share/**/*")
7680
}
81+
from(layout.projectDirectory.files("LICENSE.*", "COPYING.*", "COPYRIGHT.*", "Copyright.*"))
82+
from(rootProject.layout.projectDirectory.file("LICENSE")) {
83+
rename { "LICENSE.ffmpeg-static" }
84+
}
7785
}
7886
} else null
7987

0 commit comments

Comments
 (0)