fabric-samples/asset-transfer-events/chaincode-java/build.gradle
Justin Yang ad8fc2fba7
test-network: Make the regexp of checking version more strict (backpo… (#516)
* Updated dependencies for Json and fabric-chaincode-shim:2.+ in java samples (#481)

* 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>
Signed-off-by: Justin Yang <justin.yang@themedium.io>

* test-network: Make the regexp of checking version more strict (backport #515)

Signed-off-by: Justin Yang <justin.yang@themedium.io>

* Updated dependencies fabric-chaincode-shim:2.2.+ in java samples from 2.+

Signed-off-by: Justin Yang <justin.yang@themedium.io>

Co-authored-by: fraVlaca <86831094+fraVlaca@users.noreply.github.com>
2021-11-01 08:40:29 +00:00

52 lines
930 B
Groovy

/*
* SPDX-License-Identifier: Apache-2.0
*/
plugins {
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.2.+'
implementation 'org.json:json:+'
testImplementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.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
}
installDist.dependsOn check