Add project level transitive dependency skip flag

parent b6d67e8d
......@@ -145,10 +145,10 @@ module Omnibus
#
def execute_post_build(software)
collect_licenses_for(software)
unless software.skip_transitive_dependency_licensing
collect_transitive_dependency_licenses_for(software)
check_transitive_dependency_licensing_errors_for(software)
end
return if software.skip_transitive_dependency_licensing || project.skip_transitive_dependency_licensing
collect_transitive_dependency_licenses_for(software)
check_transitive_dependency_licensing_errors_for(software)
end
#
......
......@@ -809,6 +809,26 @@ module Omnibus
end
expose :text_manifest_path
#
# Skip collecting licenses of transitive dependencies for this software
#
# @example
# skip_transitive_dependency_licensing true
#
# @param [Boolean] val
# set or reset transitive dependency license collection
#
# @return [Boolean]
#
def skip_transitive_dependency_licensing(val = NULL)
if null?(val)
@skip_transitive_dependency_licensing || false
else
@skip_transitive_dependency_licensing = val
end
end
expose :skip_transitive_dependency_licensing
#
# @!endgroup
# --------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment