hyperledger-archives / sawtooth-sdk-java

https://wiki.hyperledger.org/display/sawtooth
Apache License 2.0
19 stars 38 forks source link

cbor import not working #47

Open MonikaB13 opened 2 years ago

MonikaB13 commented 2 years ago

from the guidelines at https://github.com/hyperledger/sawtooth-sdk-java/blob/main/docs/source/using_java_sdk.rst, in the enconding your payload section

import co.nstant.in.cbor.CborBuilder import co.nstant.in.cbor.CborEncoder

does not work. Is there something I need in my gradle file also? I tried implementation("org.jetbrains.kotlinx:kotlinx-serialization-cbor:1.3.3") but that gives a 502 bad gateway error when I try building. So just wondering how do I get that import working?

MonikaB13 commented 2 years ago

So you need this line in your gradle file. It was super hard to find:

implementation("co.nstant.in:cbor:0.9")