Skip to content

Commit

Permalink
Set chili-core as a non-transitive dependency to reduce jar size.
Browse files Browse the repository at this point in the history
  • Loading branch information
chilimannen committed Dec 9, 2017
1 parent e418006 commit 6b5387e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'

project.version = "1.0.0-SNAPSHOT"
project.version = "1.0.1-SNAPSHOT"
project.group = 'com.codingchili.ethereumingest'

sourceCompatibility = 1.8
Expand All @@ -20,7 +20,7 @@ repositories {
}

dependencies {
compile 'com.github.codingchili.chili-core:core:1.0.9-SNAPSHOT'
compile 'com.github.codingchili.chili-core:core:1.0.18-SNAPSHOT@jar'
compile 'org.web3j:core:2.3.1'
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/codingchili/ethereumingest/Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Service implements CoreService {
public static void main(String[] args) throws IOException {
system().setHandlers(1).setListeners(1);
launcher().setApplication("Ethereum Ingest")
.setVersion("1.0.0")
.setVersion("1.0.1")
.setAuthor("codingchili@github")
.setClustered(true)
.deployable(Service.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private <E extends Storable> Future<AsyncStorage<E>> storage(Class<E> storable,

new StorageLoader<E>(context)
.withDB(index, index)
.withClass(storable)
.withValue(storable)
.withPlugin(config.getStoragePlugin())
.build((storage) -> {
if (storage.succeeded()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ public String getPath() {
}

@Override
public void setPath(String path) {
public ApplicationConfig setPath(String path) {
ApplicationConfig.path = path;
return this;
}

public String getBlockIndex() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public StorableBlock(EthBlock.Block block) {
}

@Override
public String id() {
public String getId() {
return hash;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void setTimestamp(String timestamp) {
}

@Override
public String id() {
public String getId() {
return getHash();
}

Expand Down

0 comments on commit 6b5387e

Please sign in to comment.