mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-01-09 19:35:53 +00:00
2a8ecab299
Previously, sources generated from the serpent antlr grammar in ethereumj-core/src/main/antlr4 were output into the build/generated-src directory by default. This worked from the command line without issue, but caused issues within IDEA, because the entirety of the 'build' directory is excluded from compilation by default when working with a Gradle-based project in IDEA. This change simplifies the arrangement by writing these antlr-generated sources to the src/gen/java. A .gitignore file has been added to ensure that transient source files don't accidentally get checked in. A readme file has been added to explain the situation to the uninitiated.
ethereum-core
Include ethereum-core in your project
- Add http://dl.bintray.com/ethereum/maven as a repository to your build script
- Add a dependency on
org.ethereum:ethereumj:$version
, where$version
is one of those listed at https://bintray.com/ethereum/maven/org.ethereum/view
Examples
See ethereumj-studio.
Build from source
Compile, test and package
Run ./gradlew build
.
- find jar artifacts at
build/libs
- find unit test and code coverage reports at
build/reports
Run an ethereum node
- run
./gradlew run
, or - build a standalone executable jar with
./gradlew shadow
and execute the-all
jar inbuild/libs
usingjava -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.
Publish ethereumj-core builds
TODO: integrate bintray gradle plugin