summaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
blob: 2c896ec868d569002ba40eb55ee43965887af952 (plain) (blame)
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
#!/bin/bash -e
# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

FULL=false

if [ "$1" = "full" ]; then
    FULL=true
fi

mvn_install() {
    mvn install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true $@
}

# Generate vtag map
top=$(dirname $0)
$top/dist/getversion.pl -M $top > $top/dist/vtag.map

# These modules are required to be available to maven for it to calculate the
# Vespa java dependency graph.
MODULES="
  .
  annotations
  scalalib
  bundle-plugin
  "

for module in $MODULES; do
    (cd $module && mvn_install -N)
done

mvn_install -am -pl config-class-plugin -rf configgen
if $FULL; then
    # Build all java modules required by C++ testing
    mvn_install -am -pl filedistributionmanager,jrt,linguistics,messagebus -rf yolean
else
    # Build minimal set of java modules required to run cmake
    mvn_install -am -pl filedistributionmanager -rf yolean
fi