@@ -11,11 +11,20 @@ plugins {
1111 id ' signing'
1212}
1313
14+ tasks. withType(org.gradle.api.tasks.testing.Test ) {
15+ systemProperty ' CORE_CHAINCODE_LOGGING_LEVEL' , ' DEBUG'
16+ }
17+
18+
1419dependencies {
1520 compile project(' :fabric-chaincode-protos' )
1621 compile ' io.netty:netty-tcnative-boringssl-static:2.0.7.Final'
1722 compile ' org.bouncycastle:bcpkix-jdk15on:1.59'
1823 compile ' org.bouncycastle:bcprov-jdk15on:1.59'
24+ compile ' org.reflections:reflections:0.9.11'
25+ implementation ' com.github.everit-org.json-schema:org.everit.json.schema:1.11.1'
26+ compile ' io.swagger.core.v3:swagger-annotations:2.0.0'
27+ implementation group : ' org.json' , name : ' json' , version : ' 20180813'
1928}
2029
2130sourceSets {
@@ -62,7 +71,13 @@ jacocoTestCoverageVerification {
6271 element = ' CLASS'
6372 excludes = [' org.hyperledger.fabric.shim.helper.Channel' ,
6473 ' org.hyperledger.fabric.shim.impl.Handler' ,
65- ' org.hyperledger.fabric.shim.impl.ChaincodeSupportStream.1' ]
74+ ' org.hyperledger.fabric.shim.impl.ChaincodeSupportStream.1' ,
75+ ' org.hyperledger.fabric.contract.ContractRouter' ,
76+ ' org.hyperledger.fabric.contract.routing.impl.ContractDefinitionImpl' ,
77+ ' org.hyperledger.fabric.contract.routing.RoutingRegistry' ,
78+ ' org.hyperledger.fabric.contract.execution.impl.ContractInvocationRequest' ,
79+ ' org.hyperledger.fabric.contract.routing.TransactionType' ,
80+ ' org.hyperledger.fabric.contract.metadata.MetadataBuilder' ]
6681 limit {
6782 minimum = 0.86
6883 }
@@ -71,9 +86,14 @@ jacocoTestCoverageVerification {
7186 rule {
7287 element = ' CLASS'
7388 includes = [' org.hyperledger.fabric.shim.helper.Channel' ,
74- ' org.hyperledger.fabric.shim.impl.Handler' ]
89+ ' org.hyperledger.fabric.contract.ContractRouter' ,
90+ ' org.hyperledger.fabric.contract.execution.impl.ContractInvocationRequest' ,
91+ ' org.hyperledger.fabric.contract.routing.impl.ContractDefinitionImpl' ,
92+ ' org.hyperledger.fabric.contract.routing.RoutingRegistry' ,
93+ ' org.hyperledger.fabric.shim.impl.Handler' ,
94+ ' org.hyperledger.fabric.contract.metadata.MetadataBuilder' ]
7595 limit {
76- minimum = 0.79
96+ minimum = 0.71
7797 }
7898 }
7999 }
@@ -93,6 +113,7 @@ task licenseCheck {
93113 sourceSet ->
94114 sourceSet. allSource. findAll { ! it. path. contains(" build" ) && ! it. path. contains(" test/resources" )}. each {
95115 file ->
116+ if (! file. name. contains(" json" )){
96117 BufferedReader r = new BufferedReader (new FileReader (file))
97118 def line, hasSPDX = false , hasTraditional = false
98119 while ((line = r. readLine()) != null ) {
@@ -112,6 +133,7 @@ task licenseCheck {
112133 missing. add(file)
113134 }
114135 }
136+ }
115137 }
116138 }
117139
@@ -140,7 +162,14 @@ task licenseCheck {
140162
141163javadoc {
142164 failOnError = false
143- excludes = [' org/hyperledger/fabric/shim/impl/**' ,
165+ excludes = [' org/hyperledger/fabric/contract/ContextFactory.java' ,
166+ ' org/hyperledger/fabric/contract/ContractRouter.java' ,
167+ ' org/hyperledger/fabric/contract/ContractRuntimeException.java' ,
168+ ' org/hyperledger/fabric/contract/execution/**' ,
169+ ' org/hyperledger/fabric/contract/metadata/**' ,
170+ ' org/hyperledger/fabric/contract/routing/**' ,
171+ ' org/hyperledger/fabric/contract/systemcontract/**' ,
172+ ' org/hyperledger/fabric/shim/impl/**' ,
144173 ' org/hyperledger/fabric/shim/helper/**' ,
145174 ' org/hyperledger/fabric/shim/ChaincodeBase.java' ]
146175 source = sourceSets. main. allJava
0 commit comments