Skip to content

Commit a2ef1cb

Browse files
committed
generateNotice should not be up-to-date if extractNativeLicenses isn't
1 parent d935441 commit a2ef1cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

x-pack/plugin/ml/build.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ project.afterEvaluate {
7676
// Add an extra licenses directory to the combined notices
7777
project.tasks.findByName('generateNotice').dependsOn extractNativeLicenses
7878
project.tasks.findByName('generateNotice').licensesDir new File("${project.buildDir}/platform/licenses")
79+
project.tasks.findByName('generateNotice').outputs.upToDateWhen {
80+
extractNativeLicenses.state.upToDate
81+
}
7982
}
8083

8184
run {

0 commit comments

Comments
 (0)