-
Notifications
You must be signed in to change notification settings - Fork 127
/
build.gradle
74 lines (64 loc) · 2.16 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
import static org.gradle.api.JavaVersion.VERSION_17
import static org.gradle.jvm.toolchain.JavaLanguageVersion.of
plugins {
id 'org.jetbrains.kotlin.jvm'
id 'net.corda.cordapp.cordapp-configuration'
id 'org.jetbrains.kotlin.plugin.jpa'
id 'java'
id 'maven-publish'
id 'net.corda.gradle.plugin'
}
allprojects {
group 'com.r3.developers.cordapptemplate'
version '1.0-SNAPSHOT'
// Configure Corda runtime gradle plugin
cordaRuntimeGradlePlugin {
notaryVersion = cordaNotaryPluginsVersion
notaryCpiName = "NotaryServer"
corDappCpiName = "MyCorDapp"
cpiUploadTimeout = "30000"
vnodeRegistrationTimeout = "60000"
cordaProcessorTimeout = "300000"
workflowsModuleName = "workflows"
cordaClusterURL = "https://localhost:8888"
cordaRestUser = "admin"
cordaRestPasswd ="admin"
composeFilePath = "config/combined-worker-compose.yaml"
networkConfigFile = "config/static-network-config.json"
r3RootCertFile = "config/r3-ca-key.pem"
skipTestsDuringBuildCpis = "false"
cordaRuntimePluginWorkspaceDir = "workspace"
cordaBinDir = "${System.getProperty("user.home")}/.corda/corda5"
cordaCliBinDir = "${System.getProperty("user.home")}/.corda/cli"
}
java {
toolchain {
languageVersion = of(VERSION_17.majorVersion.toInteger())
}
withSourcesJar()
}
// Declare the set of Java compiler options we need to build a CorDapp.
tasks.withType(JavaCompile) {
// -parameters - Needed for reflection and serialization to work correctly.
options.compilerArgs += [
"-parameters"
]
}
repositories {
// All dependencies are held in Maven Central
mavenLocal()
mavenCentral()
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId "corda-dev-template-java-sample"
groupId project.group
artifact jar
}
}
}