This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle
83 lines (67 loc) · 2.27 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
buildscript {
ext.corda_release_group = 'net.corda'
ext.corda_release_version = '3.1-corda'
ext.corda_gradle_plugins_version = '3.0.9'
ext.quasar_version = '0.7.9'
ext.junit_version = '4.12'
ext.kotlin_version = '1.2.30'
ext.indy_version = "1.8.2"
ext.jackson_version = '2.9.7'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
classpath "net.corda.plugins:cordapp:${corda_gradle_plugins_version}"
classpath "net.corda.plugins:quasar-utils:${corda_gradle_plugins_version}"
}
}
subprojects {
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases' }
maven { url 'https://repo.sovrin.org/repository/maven-releases' }
}
apply plugin: 'kotlin'
apply plugin: 'idea'
sourceSets {
main.resources {
srcDir "config/dev"
}
test.resources {
srcDir "config/test"
srcDir "$rootDir/genesis"
}
}
//Required by JitPack for source packing
apply plugin: 'maven'
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}"
implementation "org.jetbrains.kotlin:kotlin-reflect:${kotlin_version}"
compile 'com.github.alexeykoren:konfig:2.0.4'
implementation 'io.github.microutils:kotlin-logging:1.6.22'
//Version should be same with one used by corda node.
implementation 'io.reactivex:rxjava:1.2.4'
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testImplementation "junit:junit:$junit_version"
}
compileKotlin.kotlinOptions.jvmTarget = "1.8"
compileTestKotlin.kotlinOptions.jvmTarget = "1.8"
sourceCompatibility = 1.8
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
javaParameters = true // Useful for reflection.
}
}