Brian O'Connor

Updating maven_jar.bucklet to use remote_file when possible

Change-Id: Ib45bdde2fc41f65d2a8373b55caed6930b361844
...@@ -42,6 +42,24 @@ def maven_jar( ...@@ -42,6 +42,24 @@ def maven_jar(
42 visibility = ['PUBLIC'], 42 visibility = ['PUBLIC'],
43 local_license = False, 43 local_license = False,
44 full_url = ''): 44 full_url = ''):
45 +
46 + if not full_url:
47 + groupId, artifactId, version = id.split(':')
48 +
49 + prebuilt_jar(
50 + name = name,
51 + binary_jar = ':%s-jar' % name,
52 + visibility = [ 'PUBLIC' ]
53 + )
54 +
55 + remote_file(
56 + name = name + '-jar',
57 + out = '%s-%s.jar' % (artifactId, version),
58 + url = 'mvn:%s:%s:%s:%s' % (groupId, artifactId, 'jar', version),
59 + sha1 = sha1
60 + )
61 + return
62 +
45 from os import path 63 from os import path
46 64
47 parts = id.split(':') 65 parts = id.split(':')
......