-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[ML] Include 3rd party C++ component notices #30132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
c25fd92
e6b73fd
146b09c
d935441
a2ef1cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,20 @@ artifacts { | |
testArtifacts testJar | ||
} | ||
|
||
task extractNativeLicenses(type: Copy) { | ||
dependsOn configurations.nativeBundle | ||
into "${buildDir}" | ||
from { | ||
project.zipTree(configurations.nativeBundle.singleFile) | ||
} | ||
include 'platform/licenses/**' | ||
} | ||
project.afterEvaluate { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do these need to be in an afterEvaluate? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hrm, I see why (generateNotice is added as a task in an afterEvaluate), but this is incredibly fragile (depends on the order afterEvaluates are run in). I will work on a change to simplify this using gradle's new Provider stuff. |
||
// Add an extra licenses directory to the combined notices | ||
project.tasks.findByName('generateNotice').dependsOn extractNativeLicenses | ||
project.tasks.findByName('generateNotice').licensesDir new File("${project.buildDir}/platform/licenses") | ||
} | ||
|
||
run { | ||
plugin xpackModule('core') | ||
} | ||
|
@@ -85,7 +99,7 @@ task internalClusterTest(type: RandomizedTestingTask, | |
include '**/*IT.class' | ||
systemProperty 'es.set.netty.runtime.available.processors', 'false' | ||
} | ||
check.dependsOn internalClusterTest | ||
check.dependsOn internalClusterTest | ||
internalClusterTest.mustRunAfter test | ||
|
||
// also add an "alias" task to make typing on the command line easier | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can avoid adding this task to the task graph if the project is not
tar
norzip
? That way we do not have no-op tasks foross-tar
andoss-zip
. Something like:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I changed that in the 3rd commit.