mirror of
https://github.com/corda/corda.git
synced 2025-01-18 18:56:28 +00:00
Moved the plugins docs into the creating a cordapp doc.
This commit is contained in:
parent
6dd29981dd
commit
efb4629a44
@ -1,42 +0,0 @@
|
||||
Cordapp Plugins
|
||||
===============
|
||||
|
||||
Building Plugins
|
||||
----------------
|
||||
|
||||
To build the plugins that Cordapps require run the following from the root of the Corda project:
|
||||
|
||||
.. code-block:: text
|
||||
|
||||
./gradlew publishToMavenLocal
|
||||
|
||||
The plugins will now be installed to MavenLocal.
|
||||
|
||||
Installing Plugins
|
||||
------------------
|
||||
|
||||
To use the plugins, if you are not already using the Cordapp template project, you must modify your build.gradle. Add
|
||||
the following segments to the relevant part of your build.gradle.
|
||||
|
||||
.. code-block::
|
||||
|
||||
buildscript {
|
||||
ext.corda_version = '<enter the corda version you build against here>'
|
||||
... (your buildscript)
|
||||
|
||||
repositories {
|
||||
... (other repositories)
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
... (your dependencies)
|
||||
classpath "com.r3corda.plugins:<plugin-maven-name>:$corda_version"
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'com.r3corda.plugins.<plugin-maven-name>'
|
||||
|
||||
...
|
||||
|
||||
The available plugins are in the gradle-plugins directory of the Corda repository.
|
@ -122,3 +122,48 @@ In Gradle you can depend on these by adding/modifying your build.gradle file to
|
||||
compile "com.r3corda:corda:$corda_version"
|
||||
... other dependencies here ...
|
||||
}
|
||||
|
||||
Gradle Plugins for Cordapps
|
||||
===========================
|
||||
|
||||
There are several Cordapp plugins that reduce your build.gradle boilerplate and make development of Cordapps easier.
|
||||
The available plugins are in the gradle-plugins directory of the Corda repository.
|
||||
|
||||
Building Gradle Plugins
|
||||
-----------------------
|
||||
|
||||
To build the plugins that Cordapps require run the following from the root of the Corda project:
|
||||
|
||||
.. code-block:: text
|
||||
|
||||
./gradlew publishToMavenLocal
|
||||
|
||||
The plugins will now be installed to MavenLocal.
|
||||
|
||||
Installing Gradle Plugins
|
||||
-------------------------
|
||||
|
||||
To use the plugins, if you are not already using the Cordapp template project, you must modify your build.gradle. Add
|
||||
the following segments to the relevant part of your build.gradle.
|
||||
|
||||
.. code-block::
|
||||
|
||||
buildscript {
|
||||
ext.corda_version = '<enter the corda version you build against here>'
|
||||
... (your buildscript)
|
||||
|
||||
repositories {
|
||||
... (other repositories)
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
... (your dependencies)
|
||||
classpath "com.r3corda.plugins:<plugin-maven-name>:$corda_version"
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'com.r3corda.plugins.<plugin-maven-name>'
|
||||
|
||||
...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user