mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-26 03:25:09 +00:00
This reverts commit cc0f8c7bbba3ef1a0be1a9291e6c0a594b281933. revert wrong commit cc0f8c7bbba3ef1a0be1a9291e6c0a594b281933 Signed-off-by: fraVlaca <ocsenarf@outlook.com>
52 lines
1.2 KiB
Groovy
52 lines
1.2 KiB
Groovy
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
plugins {
|
|
id 'com.github.johnrengelman.shadow' version '5.2.0'
|
|
id 'java'
|
|
}
|
|
|
|
version '0.0.1'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
maven {
|
|
url 'https://jitpack.io'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.2.0'
|
|
implementation 'com.owlike:genson:1.6'
|
|
implementation 'com.google.code.gson:gson:2.8.7'
|
|
implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.9'
|
|
implementation 'io.vertx:vertx-core:3.5.3'
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
|
|
testImplementation 'org.assertj:assertj-core:3.11.1'
|
|
testImplementation 'org.mockito:mockito-core:2.+'
|
|
}
|
|
|
|
shadowJar {
|
|
baseName = 'chaincode'
|
|
version = null
|
|
classifier = null
|
|
|
|
manifest {
|
|
attributes 'Main-Class': 'org.hyperledger.fabric.contract.ContractRouter'
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events "passed", "skipped", "failed"
|
|
}
|
|
}
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-parameters"
|
|
}
|