forked from hyperledger/fabric-chaincode-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (48 loc) · 1.46 KB
/
build.gradle
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
48
49
50
51
52
53
54
55
56
57
58
59
/*
* Copyright IBM Corp. 2018 All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
apply plugin: 'idea'
apply plugin: 'eclipse-wtp'
version = '2.1.0'
allprojects {
repositories {
mavenCentral()
mavenLocal()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://www.jitpack.io" }
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
group = 'org.hyperledger.fabric-chaincode-java'
version = rootProject.version
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile 'commons-cli:commons-cli:1.4'
compile 'commons-logging:commons-logging:1.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
testCompile 'org.hamcrest:hamcrest-library:1.3'
testCompile 'org.mockito:mockito-core:2.23.0'
testCompile 'com.github.stefanbirkner:system-rules:1.17.0'
testCompileOnly 'junit:junit:4.12'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.3.1'
testCompile 'org.assertj:assertj-core:3.9.1'
}
if (!it.name.equals('fabric-chaincode-protos')) {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:all,-try"
}
}
test {
useJUnitPlatform()
}
}
task printVersionName() {
println rootProject.version
}