Merge "Allow plugins to use self-provided licenses for used Maven Jars"
This commit is contained in:
@@ -42,7 +42,8 @@ def maven_jar(
|
||||
sha1 = '', bin_sha1 = '', src_sha1 = '',
|
||||
repository = MAVEN_CENTRAL,
|
||||
attach_source = True,
|
||||
visibility = ['PUBLIC']):
|
||||
visibility = ['PUBLIC'],
|
||||
local_license = False):
|
||||
from os import path
|
||||
|
||||
parts = id.split(':')
|
||||
@@ -91,7 +92,10 @@ def maven_jar(
|
||||
cmd = ' '.join(cmd),
|
||||
out = binjar,
|
||||
)
|
||||
license = ['//lib:LICENSE-' + license]
|
||||
license = ':LICENSE-' + license
|
||||
if not local_license:
|
||||
license = '//lib' + license
|
||||
license = [license]
|
||||
|
||||
if src_sha1 or attach_source:
|
||||
cmd = ['$(exe //tools:download_file)', '-o', '$OUT', '-u', srcurl]
|
||||
|
||||
Reference in New Issue
Block a user