Przeglądaj źródła

[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 rok temu
rodzic
commit
a91564c677
1 zmienionych plików z 2 dodań i 0 usunięć
  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 {
   dependsOn "extractNativeLicenses"
   inputs.dir("${project.buildDir}/extractedNativeLicenses/platform/licenses")
+    .withPropertyName('licensingDir')
+    .withPathSensitivity(PathSensitivity.RELATIVE)
   licenseDirs.add(tasks.named("extractNativeLicenses").map {new File(it.destinationDir, "platform/licenses") })
 }