Hyperledger SDK for Java chaincode (shim-client-1.0)

匿名 (未验证) 提交于 2019-12-03 09:05:37

问题:

I tried to compile chaincode sample and write my own one (https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/SimpleSample)

However, I can't get a shim-client-1.0. Do you have plans to make java sdk public?

回答1:

I hope that “shim-client-1.0.jar” will be added to maven repository soon, nevertheless you can try to compile it using source code in “github.com/hyperledger/fabric/core/chaincode/shim/java”.

gradle build 

and "shim-client-1.0.jar" will be available in github.com/hyperledger/fabric/core/chaincode/shim/java/build/lib folder.



回答2:

/jsdkhl/src/github.com/hyperledger/fabric/core/chaincode/shim/java$ gradle build

FAILURE: Build failed with an exception.

  • Where: Build file '/home/test/jsdkhl/src/github.com/hyperledger/fabric/core/chaincode/shim/java/build.gradle' line: 33

  • What went wrong: An exception occurred applying plugin request [id: 'java']

    Failed to apply plugin [id 'org.gradle.java'] Could not create an instance of type com.google.protobuf.gradle.ProtobufSourceDirectorySet_Decorated.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!