-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
111 lines (93 loc) · 3.53 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
buildscript {
ext {
kotlin_group = 'org.jetbrains.kotlin'
kotlin_version = '1.2.71'
corda_artifactory_url = 'https://software.r3.com/artifactory'
corda_group = 'net.corda'
corda_release_version = '4.6'
corda_gradle_plugin_group = 'net.corda.plugins'
corda_gradle_plugin_version = '5.0.4'
junit_group = 'org.junit.jupiter'
junit_version = '5.3.1'
onixlabs_group = 'io.onixlabs'
onixlabs_corda_core_release_version = '1.2.0'
onixlabs_corda_idfx_release_version = '2.0.0-rc2'
cordapp_platform_version = 8
cordapp_contract_name = 'ONIXLabs Corda BNMS Contract'
cordapp_workflow_name = 'ONIXLabs Corda BNMS Workflow'
cordapp_vendor_name = 'ONIXLabs'
cordapp_license = 'Apache License, Version 2.0'
cordapp_version_id = 1
cordapp_signing_enabled = true
cordapp_signing_alias = 'cordapp-signer'
cordapp_signing_storetype = 'PKCS12'
cordapp_signing_keystore = findProperty('onixlabs.production.jarsign.keystore') ?: getProperty('onixlabs.development.jarsign.keystore')
cordapp_signing_password = findProperty('onixlabs.production.jarsign.password') ?: getProperty('onixlabs.development.jarsign.password')
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "$corda_artifactory_url/corda-releases" }
maven { url "$corda_artifactory_url/corda-dependencies" }
}
dependencies {
classpath "$kotlin_group:kotlin-gradle-plugin:$kotlin_version"
classpath "$corda_gradle_plugin_group:cordapp:$corda_gradle_plugin_version"
}
}
group 'io.onixlabs'
version '1.0.0'
subprojects {
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
maven { url "$corda_artifactory_url/corda-releases" }
maven { url "$corda_artifactory_url/corda-dependencies" }
maven { url "https://repo.gradle.org/gradle/libs-releases" }
maven {
name = "GitHubPackagesCIF"
url = uri("https://maven.pkg.github.com/onix-labs/onixlabs-corda-identity-framework-beta")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
configurations {
all {
exclude module: 'slf4j-log4j12'
exclude module: 'log4j-slf4j-impl'
}
}
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
apply plugin: 'net.corda.plugins.cordapp'
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
languageVersion = "1.2"
apiVersion = "1.2"
jvmTarget = "1.8"
javaParameters = true
}
}
jar { exclude '**/log4j2*.xml' }
test {
jvmArgs = ["-ea", "-javaagent:../lib/quasar.jar"]
useJUnitPlatform()
}
}
task cleanLocal(type: Exec) {
def shellExec = System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows') ? 'cmd' : 'sh'
commandLine shellExec, './clean-cache.sh'
}
task releaseLocal(type: GradleBuild) {
startParameter = gradle.startParameter.newInstance()
tasks = ['clean', 'build', 'publishToMavenLocal']
}
task releasePublic(type: GradleBuild) {
startParameter = gradle.startParameter.newInstance()
tasks = ['clean', 'build', 'publishToMavenLocal', 'publish']
}