mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
* fixed json dependencies for java Signed-off-by: fraVlaca <ocsenarf@outlook.com> * updated dependency for asset-tranfer-sbe: now declaing also org.hyperledger.fabric.protos.common Signed-off-by: fraVlaca <ocsenarf@outlook.com> * "corrected typo of last commit and added testImplementation 'org.hyperledger.fabric.protos.common'" Signed-off-by: fraVlaca <ocsenarf@outlook.com> * included correct dependecy for fabric-protos and added com.google.protobuf as well Signed-off-by: fraVlaca <ocsenarf@outlook.com>
65 lines
No EOL
1.2 KiB
Groovy
65 lines
No EOL
1.2 KiB
Groovy
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
plugins {
|
|
id 'com.github.johnrengelman.shadow' version '5.1.0'
|
|
id 'application'
|
|
id 'checkstyle'
|
|
id 'jacoco'
|
|
}
|
|
|
|
group 'org.hyperledger.fabric.samples'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
dependencies {
|
|
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
|
|
implementation 'org.json:json:+'
|
|
testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.+'
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url "https://hyperledger.jfrog.io/hyperledger/fabric-maven"
|
|
}
|
|
jcenter()
|
|
maven {
|
|
url 'https://jitpack.io'
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClassName = 'org.hyperledger.fabric.contract.ContractRouter'
|
|
}
|
|
|
|
|
|
checkstyle {
|
|
toolVersion '8.21'
|
|
configFile file("config/checkstyle/checkstyle.xml")
|
|
}
|
|
|
|
checkstyleMain {
|
|
source ='src/main/java'
|
|
}
|
|
|
|
checkstyleTest {
|
|
source ='src/test/java'
|
|
}
|
|
|
|
jacocoTestReport {
|
|
dependsOn test
|
|
}
|
|
|
|
mainClassName = 'org.hyperledger.fabric.contract.ContractRouter'
|
|
|
|
shadowJar {
|
|
baseName = 'chaincode'
|
|
version = null
|
|
classifier = null
|
|
|
|
manifest {
|
|
attributes 'Main-Class': 'org.hyperledger.fabric.contract.ContractRouter'
|
|
}
|
|
}
|
|
|
|
installDist.dependsOn check |