mirror of
https://github.com/corda/corda.git
synced 2024-12-21 05:53:23 +00:00
3046843d40
The list of CorDapps jars is no longer passed in via the cmd line but is now expected to be placed in the bootstrapped directory. Ended up being a bit of a refactor to cater for unit testing, and also tidied up the bootstrapper docs.
36 lines
1.3 KiB
Bash
Executable File
36 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
# Please ensure you run this script using source code (eg. GitHub master, branch or TAG) that reflects the version label defined below
|
|
# For example:
|
|
# corda-master => git clone https://github.com/corda/corda
|
|
# r3corda-master => git clone https://github.com/corda/enterprise
|
|
VERSION=corda-master
|
|
STAGING_DIR=~/staging
|
|
CORDA_DIR=${STAGING_DIR}/corda/${VERSION}
|
|
CORDAPP_DIR=${CORDA_DIR}/apps
|
|
DRIVERS_DIR=${STAGING_DIR}/drivers
|
|
|
|
# Set up directories
|
|
mkdir -p ${STAGING_DIR}
|
|
mkdir -p ${CORDA_DIR}
|
|
mkdir -p ${CORDAPP_DIR}
|
|
mkdir -p ${DRIVERS_DIR}
|
|
|
|
# Copy Corda capsule into deps
|
|
cd ../..
|
|
./gradlew clean :node:capsule:buildCordaJar :finance:jar
|
|
cp -v $(ls node/capsule/build/libs/corda-*.jar | tail -n1) ${CORDA_DIR}/corda.jar
|
|
|
|
# Copy finance library
|
|
cp -v $(ls finance/build/libs/corda-finance-*.jar | tail -n1) ${CORDAPP_DIR}
|
|
|
|
# Download database drivers
|
|
curl "https://search.maven.org/remotecontent?filepath=com/h2database/h2/1.4.196/h2-1.4.196.jar" > ${DRIVERS_DIR}/h2-1.4.196.jar
|
|
curl -L "http://central.maven.org/maven2/org/postgresql/postgresql/42.1.4/postgresql-42.1.4.jar" > ${DRIVERS_DIR}/postgresql-42.1.4.jar
|
|
|
|
# Build Network Bootstrapper
|
|
./gradlew tools:bootstrapper:jar
|
|
cp -v $(ls tools/bootstrapper/build/libs/*.jar | tail -n1) ${CORDA_DIR}/network-bootstrapper.jar
|