ethereumj-personal/ethereumj-core
Chris Beams a155518b41
Polish whitespace and imports
As part of pull request #179, commits 0d922e1, 003249c and d099100
introduced use of Java 8 language features and APIs. Commit c95f5ea
manually reverted these changes (see #184 as to why), but in the process
re-introduced formatting issues originally cleaned up by other commits
in #179. This change fixes those formatting issues.

 - Replace leading tabs with spaces (for reasons detailed in 0827fb5)
 - Add space before opening curly brace
 - Optimize imports using shared .idea/codeStyleSettings.xml (note
   especially expansion of wildcard imports. See rationale in 780393d)
 - Do not align assignments on equals sign
 - Remove unnecessary additional newlines
 - Remove braces from single-line loops and conditionals
2014-12-30 19:28:19 +01:00
..
src Polish whitespace and imports 2014-12-30 19:28:19 +01:00
README.md Publish artifacts to oss.jfrog.org and Bintray 2014-12-29 16:43:37 +01:00
build.gradle Polish whitespace and imports 2014-12-30 19:28:19 +01:00
track-untrack-local.bat Strip trailing whitespace 2014-12-26 09:45:14 +01:00

README.md

ethereum-core

Include ethereum-core in your project

For snapshot builds:

  • Add https://oss.jfrog.org/libs-snapshot/ as a repository to your build script
  • Add a dependency on org.ethereum:ethereumj-core:${VERSION}, where ${VERSION} is of the form 0.7.14-SNAPSHOT.

Example:

<repository>
    <id>jfrog-snapshots</id>
    <name>oss.jfrog.org</name>
    <url>https://oss.jfrog.org/libs-snapshot/</url>
    <snapshots><enabled>true</enabled></snapshots>
</repository>
<!-- ... -->
<dependency>
   <groupId>org.ethereum</groupId>
   <artifactId>ethereumj-core</artifactId>
   <version>0.7.14-SNAPSHOT</version>
</dependency>

For release builds:

There are no release builds at this time. Use snapshots in the meantime.

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 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.

Publish ethereumj-core builds

Push to master.

Run ../gradlew release. Snapshots will be published to oss.jfrog.org; releases will be published to Bintray. You must supply the bintrayUser and bintrayKey properties to the Gradle build in order to authenticate. Do this in $HOME/.gradle/gradle.properties for greatest convenience and security.