mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Currently sample java chaincode can only work with version 1.3.0-SNAPSHOT of the shim. Allow sample java chaincode to work with any v1.x java shim. Change-Id: Iee69289392b4fa5fdb5cb14c41672f96120f711f Signed-off-by: David Enyeart <enyeart@us.ibm.com>
34 lines
706 B
Groovy
34 lines
706 B
Groovy
/*
|
|
* Copyright IBM Corp. 2018 All Rights Reserved.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
plugins {
|
|
id 'com.github.johnrengelman.shadow' version '2.0.3'
|
|
id 'java'
|
|
}
|
|
|
|
group 'org.hyperledger.fabric-chaincode-java'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '1.+'
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
}
|
|
|
|
shadowJar {
|
|
baseName = 'chaincode'
|
|
version = null
|
|
classifier = null
|
|
|
|
manifest {
|
|
attributes 'Main-Class': 'org.hyperledger.fabric.example.SimpleChaincode'
|
|
}
|
|
}
|