ethereumj-personal/ethereumj-core/README.md

42 lines
1.1 KiB
Markdown
Raw Normal View History

2014-09-10 05:34:45 +00:00
2014-12-26 13:23:44 +00:00
## ethereum-core
2014-09-10 05:34:45 +00:00
2014-12-26 13:23:44 +00:00
### Include ethereum-core in your project
2014-09-10 05:37:19 +00:00
2014-12-26 13:23:44 +00:00
1. Add http://dl.bintray.com/ethereum/maven as a repository to your build script
2. Add a dependency on `org.ethereum:ethereumj:$version`, where `$version` is one of those listed at https://bintray.com/ethereum/maven/org.ethereum/view
2014-09-10 05:37:19 +00:00
2014-09-10 05:41:46 +00:00
2014-12-26 13:23:44 +00:00
### Examples
2014-09-10 05:41:46 +00:00
2014-12-26 13:23:44 +00:00
See [ethereumj-studio](../ethereumj-studio).
2014-12-26 08:36:37 +00:00
2014-12-26 13:23:44 +00:00
### Build from source
2014-09-10 06:00:37 +00:00
2014-12-26 13:23:44 +00:00
#### Compile, test and package
2014-12-26 08:36:37 +00:00
2014-12-26 13:23:44 +00:00
Run `./gradlew build`.
2014-12-26 08:36:37 +00:00
2014-12-26 13:23:44 +00:00
- find jar artifacts at `build/libs`
- find unit test and code coverage reports at `build/reports`
2014-12-26 08:36:37 +00:00
2014-12-26 13:23:44 +00:00
#### Run an ethereum node
- run `./gradlew run`, or
- build a standalone executable jar with `./gradlew shadow` and execute the `-all` jar in `build/libs` using `java -jar [jarfile]`.
#### Import sources into IntelliJ IDEA
Use IDEA 14 or better and import project based on Gradle sources.
Note that in order to build the project without errors in IDEA, you will need to run `gradle antlr4` manually.
#### Install artifacts into your local `~/.m2` repository
Run `./gradlew install`.
2014-12-26 13:23:44 +00:00
#### Publish ethereumj-core builds
_TODO: integrate bintray gradle plugin_