summaryrefslogtreecommitdiff
path: root/solenv/maven/BUCK
blob: f5bca38be2a33a388c99a46b3f334d38b175d87e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
include_defs('//solenv/maven/VERSION')
include_defs('//solenv/maven/package.defs')

URL = 'https://oss.sonatype.org/content/repositories/snapshots' \
    if LIBREOFFICE_VERSION.endswith('-SNAPSHOT') else \
        'https://oss.sonatype.org/service/local/staging/deploy/maven2'

maven_package(
  repository = 'sonatype-nexus-staging',
  url = URL,
  version = LIBREOFFICE_VERSION,
  jar = {
    'juh': '//:juh',
    'jurt': '//:jurt',
    'officebean': '//:officebean',
    'ridl': '//:ridl',
    'unoil': '//:unoil',
    'unoloader': '//:unoloader',
  },
  src = {
    'juh': '//javaunohelper:juh-src',
    'jurt': '//jurt:jurt-src',
    'officebean': '//bean:officebean-src',
    'ridl': '//ridljar:ridl-src',
    'unoil': '//unoil:unoil-src',
    'unoloader': '//ridljar/source/unoloader:unoloader-src',
  },
  doc = {
    'juh': '//javaunohelper:juh-javadoc',
    'jurt': '//jurt:jurt-javadoc',
    'officebean': '//bean:officebean-javadoc',
    'ridl': '//ridljar:ridl-javadoc',
    'unoil': '//unoil:unoil-javadoc',
    'unoloader': '//ridljar/source/unoloader:unoloader-javadoc',
  },
)

python_binary(
  name = 'mvn',
  main = 'mvn.py',
)