Skip to content

Commit

Permalink
Use latest v2.5 fabric-chaincode-java
Browse files Browse the repository at this point in the history
Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
  • Loading branch information
bestbeforetoday committed Feb 25, 2024
1 parent a708af9 commit ef7ffb0
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 17 deletions.
13 changes: 10 additions & 3 deletions asset-transfer-basic/chaincode-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'application'
id 'checkstyle'
id 'jacoco'
Expand All @@ -14,10 +14,10 @@ version '1.0-SNAPSHOT'

dependencies {

implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.4.1'
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.+'
implementation 'org.json:json:+'
implementation 'com.owlike:genson:1.5'
testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.4.1'
testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.+'
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
testImplementation 'org.assertj:assertj-core:3.11.1'
testImplementation 'org.mockito:mockito-core:2.+'
Expand All @@ -30,6 +30,12 @@ repositories {
}
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}

application {
mainClass = 'org.hyperledger.fabric.contract.ContractRouter'
}
Expand Down Expand Up @@ -76,6 +82,7 @@ shadowJar {
baseName = 'chaincode'
version = null
classifier = null
mergeServiceFiles()

manifest {
attributes 'Main-Class': 'org.hyperledger.fabric.contract.ContractRouter'
Expand Down
13 changes: 10 additions & 3 deletions asset-transfer-events/chaincode-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'application'
id 'checkstyle'
id 'jacoco'
Expand All @@ -13,9 +13,9 @@ group 'org.hyperledger.fabric.samples'
version '1.0-SNAPSHOT'

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

repositories {
Expand All @@ -25,6 +25,12 @@ repositories {
}
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}

application {
mainClassName = 'org.hyperledger.fabric.contract.ContractRouter'
}
Expand Down Expand Up @@ -53,6 +59,7 @@ shadowJar {
baseName = 'chaincode'
version = null
classifier = null
mergeServiceFiles()

manifest {
attributes 'Main-Class': 'org.hyperledger.fabric.contract.ContractRouter'
Expand Down
11 changes: 9 additions & 2 deletions asset-transfer-private-data/chaincode-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'application'
id 'checkstyle'
id 'jacoco'
Expand All @@ -17,7 +17,7 @@ dependencies {
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.+'
implementation 'org.json:json:+'

testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.+'
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
testImplementation 'org.assertj:assertj-core:3.11.1'
testImplementation 'org.mockito:mockito-core:2.+'
Expand All @@ -30,6 +30,12 @@ repositories {
}
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}

application {
mainClass = 'org.hyperledger.fabric.contract.ContractRouter'
}
Expand Down Expand Up @@ -64,6 +70,7 @@ shadowJar {
baseName = 'chaincode'
version = null
classifier = null
mergeServiceFiles()

manifest {
attributes 'Main-Class': 'org.hyperledger.fabric.contract.ContractRouter'
Expand Down
13 changes: 10 additions & 3 deletions asset-transfer-sbe/chaincode-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'application'
id 'checkstyle'
id 'jacoco'
Expand All @@ -14,13 +14,13 @@ version '1.0-SNAPSHOT'

dependencies {

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

testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.4.1'
testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.+'
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
testImplementation 'org.assertj:assertj-core:3.11.1'
testImplementation 'org.mockito:mockito-core:2.+'
Expand All @@ -33,6 +33,12 @@ repositories {
}
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}

application {
mainClass = 'org.hyperledger.fabric.contract.ContractRouter'
}
Expand Down Expand Up @@ -79,6 +85,7 @@ shadowJar {
baseName = 'chaincode'
version = null
classifier = null
mergeServiceFiles()

manifest {
attributes 'Main-Class': 'org.hyperledger.fabric.contract.ContractRouter'
Expand Down
13 changes: 10 additions & 3 deletions token-erc-20/chaincode-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'application'
id 'checkstyle'
id 'jacoco'
Expand All @@ -14,10 +14,10 @@ version '1.0-SNAPSHOT'

dependencies {

implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.4.1'
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.+'
implementation 'org.json:json:+'
implementation 'com.owlike:genson:1.5'
testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.4.1'
testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.+'
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
testImplementation 'org.assertj:assertj-core:3.11.1'
testImplementation 'org.mockito:mockito-core:2.+'
Expand All @@ -32,6 +32,12 @@ repositories {
}
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}

application {
mainClass = 'org.hyperledger.fabric.contract.ContractRouter'
}
Expand Down Expand Up @@ -78,6 +84,7 @@ shadowJar {
baseName = 'chaincode'
version = null
classifier = null
mergeServiceFiles()

manifest {
attributes 'Main-Class': 'org.hyperledger.fabric.contract.ContractRouter'
Expand Down
13 changes: 10 additions & 3 deletions token-erc-721/chaincode-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'application'
id 'checkstyle'
id 'jacoco'
Expand All @@ -14,10 +14,10 @@ version '1.0-SNAPSHOT'

dependencies {

implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.4.1'
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.+'
implementation 'org.json:json:+'
implementation 'com.owlike:genson:1.5'
testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.4.1'
testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.+'
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
testImplementation 'org.assertj:assertj-core:3.11.1'
testImplementation 'org.mockito:mockito-core:2.23.4'
Expand All @@ -32,6 +32,12 @@ repositories {
}
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}

application {
mainClass = 'org.hyperledger.fabric.contract.ContractRouter'
}
Expand Down Expand Up @@ -81,6 +87,7 @@ shadowJar {
baseName = 'chaincode'
version = null
classifier = null
mergeServiceFiles()

manifest {
attributes 'Main-Class': 'org.hyperledger.fabric.contract.ContractRouter'
Expand Down

0 comments on commit ef7ffb0

Please sign in to comment.