mirror of
https://github.com/corda/corda.git
synced 2025-01-20 03:36:29 +00:00
Better instructions for building against master.
This commit is contained in:
parent
35f89e03ea
commit
87b00fde7d
@ -1,20 +1,19 @@
|
||||
Building against Master
|
||||
=======================
|
||||
|
||||
When developing a CorDapp, it is advisable to use the most recent Corda Milestone release, which has been extensively
|
||||
tested. However, if you need to use a very recent feature of the codebase, you may need to work against the unstable
|
||||
Master branch.
|
||||
It is advisable to develop CorDapps against the most recent Corda stable release. However you may need to build
|
||||
against the unstable Master branch if you are using a very recent feature, or are testing a PR on the main codebase.
|
||||
|
||||
To work against the Master branch, proceed as follows:
|
||||
|
||||
* Open a terminal window in the folder where you cloned the Corda repository
|
||||
1. Open a terminal window in the folder where you cloned the Corda repository
|
||||
(available `here <https://github.com/corda/corda>`_)
|
||||
|
||||
* Use the following command to check out the latest master branch:
|
||||
2. Use the following command to check out the latest master branch:
|
||||
|
||||
``git fetch; git checkout master``
|
||||
``git checkout master; git pull``
|
||||
|
||||
* Publish Corda to your local Maven repository using the following commands:
|
||||
3. Publish Corda to your local Maven repository using the following commands:
|
||||
|
||||
* Unix/Mac OSX: ``./gradlew install``
|
||||
* Windows: ``gradlew.bat install``
|
||||
@ -24,11 +23,14 @@ To work against the Master branch, proceed as follows:
|
||||
* ``~/.m2/repository`` on Unix/Mac OS X
|
||||
* ``%HOMEPATH%\.m2`` on Windows
|
||||
|
||||
This step is not necessary when using a Milestone releases, as the Milestone releases are published online
|
||||
This step is not necessary when using a stable releases, as the stable releases are published online
|
||||
|
||||
.. warning:: If you do modify your local Corda repository after having published it to Maven local, then you must
|
||||
re-publish it to Maven local for the local installation to reflect the changes you have made.
|
||||
.. warning:: If you do modify your local Corda repository after having published it to Maven local, then you must
|
||||
re-publish it to Maven local for the local installation to reflect the changes you have made.
|
||||
|
||||
.. warning:: As the Corda repository evolves on a daily basis, two clones of the Master branch at different points in
|
||||
time may differ. If you are using a Master release and need help debugging an error, then please let us know the
|
||||
**commit** you are working from. This will help us ascertain the issue.
|
||||
.. warning:: As the Corda repository evolves on a daily basis, two clones of the Master branch at different points in
|
||||
time may differ. If you are using a Master release and need help debugging an error, then please let us know the
|
||||
**commit** you are working from. This will help us ascertain the issue.
|
||||
|
||||
4. Update the ``ext.corda_release_version`` property in your CorDapp's root ``build.gradle`` file to match the version
|
||||
here: https://github.com/corda/corda/blob/master/build.gradle#L7
|
Loading…
Reference in New Issue
Block a user