forked from hyperledger/fabric-chaincode-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
47 lines (40 loc) · 1.1 KB
/
build.gradle
File metadata and controls
47 lines (40 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
plugins {
id 'com.gradleup.shadow' version '9.3.1'
id 'java'
}
version = '0.0.1'
repositories {
mavenCentral()
maven {
url = "https://www.jitpack.io"
}
}
dependencies {
implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:2.5.8'
implementation 'org.json:json:20251224'
testImplementation platform('org.junit:junit-bom:6.0.2')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.assertj:assertj-core:3.27.6'
testImplementation 'org.mockito:mockito-core:5.21.0'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
shadowJar {
archiveBaseName = 'chaincode'
archiveVersion = ''
archiveClassifier = ''
duplicatesStrategy = DuplicatesStrategy.INCLUDE
mergeServiceFiles()
manifest {
attributes 'Main-Class': 'org.example.Application'
}
}
compileJava {
options.release.set(11)
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-parameters"
}
test {
useJUnitPlatform()
testLogging {
events "PASSED", "SKIPPED", "FAILED"
}
}