Skip to content

Commit

Permalink
Updated dependencies for Json and fabric-chaincode-shim:2.+ in java s…
Browse files Browse the repository at this point in the history
…amples (hyperledger#481)

* fixed json dependencies for java

Signed-off-by: fraVlaca <[email protected]>

* updated dependency for asset-tranfer-sbe: now declaing also org.hyperledger.fabric.protos.common

Signed-off-by: fraVlaca <[email protected]>

* "corrected typo of last commit and added testImplementation 'org.hyperledger.fabric.protos.common'"

Signed-off-by: fraVlaca <[email protected]>

* included correct dependecy for fabric-protos and added com.google.protobuf as well

Signed-off-by: fraVlaca <[email protected]>
  • Loading branch information
fraVlaca authored Sep 1, 2021
1 parent a470b20 commit da65e20
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion asset-transfer-basic/chaincode-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ version '1.0-SNAPSHOT'

dependencies {

compileOnly 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
implementation 'org.json:json:+'
implementation 'com.owlike:genson:1.5'
testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
Expand Down
3 changes: 2 additions & 1 deletion asset-transfer-events/chaincode-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ group 'org.hyperledger.fabric.samples'
version '1.0-SNAPSHOT'

dependencies {
compileOnly 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
implementation 'org.json:json:+'
testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
}

Expand Down
3 changes: 2 additions & 1 deletion asset-transfer-private-data/chaincode-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ version '1.0-SNAPSHOT'

dependencies {

compileOnly 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
implementation 'org.json:json:+'

testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
Expand Down
6 changes: 5 additions & 1 deletion asset-transfer-sbe/chaincode-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ version '1.0-SNAPSHOT'

dependencies {

compileOnly 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
implementation 'org.json:json:+'
implementation 'com.google.protobuf:protobuf-java:3.+'
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-protos:2.+'
implementation 'com.owlike:genson:1.5'

testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
testImplementation 'org.assertj:assertj-core:3.11.1'
Expand Down

0 comments on commit da65e20

Please sign in to comment.