mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-16 13:46:46 +00:00
Add .idea/codeStyleSettings.xml with explicit settings for each 2nd-level package used within ethereumj, adding a separator between each (unfortunately there is no other way to gain this level of control in IDEA). Imports are generally in alphabetical order, with two key exceptions: - org.ethereumj.* imports are always sorted at top, to simplify the process of seeing how one ethereumj type relates to all others. This is especially useful in the practice of avoiding cyclic package dependencies. - java.* and javax.* and sun.* imports are always sorted at bottom. Wildcard imports are used for static imports whenever two or more members of the same type are statically imported, but wildcards are never used for non-static imports. This policy of explicitness helps identify classes that are too "fat", i.e. have too many dependencies on other types. The root .gitignore file has been updated to allow .idea/codeStyleSettings.xml, so as to automatically share it with other team members. Any changes made to import organization settings will be reflected in this file and should be checked in.
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.
Install artifacts into your local ~/.m2
repository
Run ../gradlew install
.
Publish ethereumj-core builds
TODO: integrate bintray gradle plugin