kevinjqliu commented on code in PR #18660:
URL: https://github.com/apache/iceberg/pull/18660#discussion_r4556650863
##########
runtime-deps.gradle:
##########
@@ -46,16 +47,24 @@
// 2. ./gradlew generateRuntimeDeps -DallModules --
auto-updates all baselines
// 3. Update LICENSE and NOTICE if dependency licenses changed -- This is a
Manual Step
// 4. Commit
+//
+// Options, set via ext before applying:
+// runtimeDepsFile - baseline path relative to the project
directory
+// (default: runtime-deps.txt)
+// runtimeDepsConfiguration - configuration to resolve (default:
runtimeClasspath)
+//
+// Apply once per baseline; each apply adds that baseline to the same two
tasks.
-def depsFile = file("${projectDir}/runtime-deps.txt")
+def depsFile = file("${projectDir}/${project.findProperty('runtimeDepsFile')
?: 'runtime-deps.txt'}")
Review Comment:
Thanks, replaced the `ext` approach with `trackRuntimeDeps(configuration,
path)`. The script is applied once, both tasks use `tasks.register` again, and
there's no `findProperty` or leftover `ext` state.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]