mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-17 18:32:28 +02:00
Updating maven_jar.bucklet to use remote_file when possible
Change-Id: Ib45bdde2fc41f65d2a8373b55caed6930b361844
This commit is contained in:
parent
e124f3dd7b
commit
5f207d23d1
@ -42,6 +42,24 @@ def maven_jar(
|
||||
visibility = ['PUBLIC'],
|
||||
local_license = False,
|
||||
full_url = ''):
|
||||
|
||||
if not full_url:
|
||||
groupId, artifactId, version = id.split(':')
|
||||
|
||||
prebuilt_jar(
|
||||
name = name,
|
||||
binary_jar = ':%s-jar' % name,
|
||||
visibility = [ 'PUBLIC' ]
|
||||
)
|
||||
|
||||
remote_file(
|
||||
name = name + '-jar',
|
||||
out = '%s-%s.jar' % (artifactId, version),
|
||||
url = 'mvn:%s:%s:%s:%s' % (groupId, artifactId, 'jar', version),
|
||||
sha1 = sha1
|
||||
)
|
||||
return
|
||||
|
||||
from os import path
|
||||
|
||||
parts = id.split(':')
|
||||
|
Loading…
x
Reference in New Issue
Block a user