Skip to content

Commit

Permalink
marge of latest changes to Corda accelerator
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmorgan committed Jan 15, 2019
1 parent 3f817da commit 996345f
Show file tree
Hide file tree
Showing 216 changed files with 9,590 additions and 591 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Expand Up @@ -286,3 +286,9 @@ __pycache__/
*.btm.cs
*.odx.cs
*.xsd.cs

# OSX & Intellij files
.idea/
.DS_Store
*.iml

3 changes: 3 additions & 0 deletions blockchain-development-kit/.gitignore
@@ -0,0 +1,3 @@
.idea/
.DS_Store
*.iml
3 changes: 3 additions & 0 deletions blockchain-development-kit/accelerators/.gitignore
@@ -0,0 +1,3 @@
.idea/
.DS_Store
*.iml
99 changes: 99 additions & 0 deletions blockchain-development-kit/accelerators/corda/buildAll.sh
@@ -0,0 +1,99 @@
#!/usr/bin/env bash

# A master script for building all components in the correct order.
# Can be used as the base for a CI build process or a quick way
# of building and testing locally


# Setup
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
testflags="test"
#testflags="-x test"
cleanflags="clean"
echo "Running from $script_dir"
echo $testflags


### Building shared jars

echo "Building 'commons'"
cd $script_dir/service-bus-integration/commons
./gradlew $cleanflags $testflags jar copyJarToLib &&
if (($?)); then exit -1 ; fi

echo "Building 'corda-reflections'"
cd $script_dir/service-bus-integration/corda-reflections
./gradlew $cleanflags $testflags jar copyJarToLib
if (($?)); then exit -1 ; fi


### Building Corda Apps

echo "Building 'chat' CorDapp"
ls $script_dir/cordapps/chat
cd $script_dir/cordapps/chat
./gradlew $cleanflags $testflags assemble
if (($?)); then exit -1 ; fi

cp cordapp/build/libs/chat-0.1.jar ../jars/chat.jar


echo "Building 'simple-marketplace' CorDapp"
cd $script_dir/cordapps/simple-marketplace
./gradlew $cleanflags $testflags assemble
if (($?)); then exit -1 ; fi
cp cordapp/build/libs/cordapp-simpleMarketplace-0.1.jar ../jars/simple-marketplace.jar


echo "Building 'refrigerated-transportation' CorDapp"
cd $script_dir/cordapps/refrigerated-transportation
./gradlew $cleanflags $testflags assemble
if (($?)); then exit -1 ; fi
cp cordapp/build/libs/cordapp-0.1.jar ../jars/refrigerated-transportation.jar


echo "Building 'basic-provenance' CorDapp"
cd $script_dir/cordapps/basic-provenance
./gradlew $cleanflags $testflags assemble
if (($?)); then exit -1 ; fi
cp cordapp/build/libs/cordapp-example-0.1.jar ../jars/basic-provenance.jar


### Building Services

echo "Building 'corda-local-network' "
cd $script_dir/service-bus-integration/corda-local-network
./gradlew $cleanflags $testflags jar
if (($?)); then exit -1 ; fi
docker build -t corda-local-network .
if (($?)); then exit -1 ; fi


echo "Building 'corda-transaction-builder' "
cd $script_dir/service-bus-integration/corda-transaction-builder
./gradlew $cleanflags $testflags jar
if (($?)); then exit -1 ; fi
docker build -t corda-transaction-builder .
if (($?)); then exit -1 ; fi


echo "Building 'service-bus-listener' "
cd $script_dir/service-bus-integration/service-bus-listener
./gradlew $cleanflags $testflags jar
if (($?)); then exit -1 ; fi
docker build -t service-bus-listener .
if (($?)); then exit -1 ; fi

echo "Success - everything was built"












@@ -0,0 +1,80 @@
# Eclipse, ctags, Mac metadata, log files
.classpath
.project
.settings
tags
.DS_Store
*.log
*.log.gz
*.orig

.gradle

# General build files
**/build/*
!docs/build/*

lib/dokka.jar

### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio

*.iml

## Directory-based project format:
#.idea

# if you remove the above rule, at least ignore the following:

# Specific files to avoid churn
.idea/gradle.xml
.idea/kotlinc.xml
.idea/misc.xml
.idea/modules.xml
.idea/vcs.xml
.idea/workspace.xml
.idea/inspectionProfiles
.idea/copyright
.idea/jsLibraryMappings.xml

# User-specific stuff:
.idea/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/dataSources.ids
.idea/dataSources.xml
.idea/sqlDataSources.xml
.idea/dynamic.xml
.idea/uiDesigner.xml

# Gradle:
.idea/libraries

# Mongo Explorer plugin:
.idea/mongoSettings.xml

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
/out/
/java-source/out/
/kotlin-source/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties

# docs related
docs/virtualenv/
@@ -0,0 +1,13 @@
Copyright 2016, R3 Limited.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,7 @@
<p align="center">
<img src="https://www.corda.net/wp-content/uploads/2016/11/fg005_corda_b.png" alt="Corda" width="500">
</p>

# Example CorDapp

Welcome to the example CorDapp. This CorDapp is documented [here](http://docs.corda.net/tutorial-cordapp.html).
@@ -0,0 +1,4 @@
Corda and the Corda logo are trademarks of R3CEV LLC and its affiliates.
All rights reserved.

For R3CEV LLC's trademark and logo usage information, please consult our Trademark Usage Policy available at https://www.r3.com/trademark-policy/

0 comments on commit 996345f

Please sign in to comment.