Gradle Plugin for the Epirus Platform enabling the automation of smart contract lifecycle within your development environment.
The minimum Gradle version to run the plugin is 5.+
.
To install the Epirus Plugin using the old Gradle buildscript
convention, you should add
the following to the first line of your build file:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.web3labs.epirus:epirus-gradle-plugin:1.0.0-SNAPSHOT'
}
}
apply plugin: 'com.web3labs.epirus'
Alternatively, if you are using the more modern plugins DSL, add the following line to your build file:
plugins {
id 'com.web3labs.epirus' version '1.0.0-SNAPSHOT'
}
The plugin depends on the web3j and the Solidity plugins so they will add tasks for compilation and generation of web3j contract wrappers.
In addition, this plugin registers the task uploadMetadata
, which will upload automatically
the Solidity contract metadata files to your Epirus node.
To customize the plugin with your node URL you can use the plugin extension DSL:
epirus {
url = 'http://user:[email protected]:port'
}
To obtain a list and description of all added tasks, run the command:
./gradlew tasks --all