瀏覽代碼

[build-tools] licensingDir should be relative to enable caching between builds in different directories (#107657)

* licensingDir should be relative for ml plugin
---------

Co-authored-by: Rene Groeschke <rene@breskeby.com>
Laurent Ploix 1 年之前
父節點
當前提交
a91564c677
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      x-pack/plugin/ml/build.gradle

+ 2 - 0
x-pack/plugin/ml/build.gradle

@@ -134,6 +134,8 @@ tasks.register("extractNativeLicenses", Copy) {
 tasks.named('generateNotice').configure {
 tasks.named('generateNotice').configure {
   dependsOn "extractNativeLicenses"
   dependsOn "extractNativeLicenses"
   inputs.dir("${project.buildDir}/extractedNativeLicenses/platform/licenses")
   inputs.dir("${project.buildDir}/extractedNativeLicenses/platform/licenses")
+    .withPropertyName('licensingDir')
+    .withPathSensitivity(PathSensitivity.RELATIVE)
   licenseDirs.add(tasks.named("extractNativeLicenses").map {new File(it.destinationDir, "platform/licenses") })
   licenseDirs.add(tasks.named("extractNativeLicenses").map {new File(it.destinationDir, "platform/licenses") })
 }
 }