2022-10-13 00:04:51 +02:00
|
|
|
import static org.gradle.api.JavaVersion.VERSION_11
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id 'org.jetbrains.kotlin.jvm'
|
|
|
|
id 'net.corda.cordapp.cordapp-configuration'
|
|
|
|
id 'org.jetbrains.kotlin.plugin.jpa'
|
|
|
|
id 'java'
|
|
|
|
id 'maven-publish'
|
2023-04-11 18:25:31 +02:00
|
|
|
id 'net.corda.plugins.csde'
|
2022-10-13 00:04:51 +02:00
|
|
|
}
|
|
|
|
|
2023-01-05 15:15:40 +01:00
|
|
|
allprojects {
|
2023-01-27 17:24:53 +01:00
|
|
|
group 'com.r3.developers.csdetemplate'
|
2023-01-05 15:15:40 +01:00
|
|
|
version '1.0-SNAPSHOT'
|
2022-10-13 00:04:51 +02:00
|
|
|
|
2023-01-05 15:15:40 +01:00
|
|
|
def javaVersion = VERSION_11
|
2022-10-13 00:04:51 +02:00
|
|
|
|
2023-04-11 18:25:31 +02:00
|
|
|
// Configure the CSDE
|
|
|
|
csde {
|
|
|
|
cordaClusterURL = "https://localhost:8888"
|
2023-08-03 16:17:40 +02:00
|
|
|
networkConfigFile = "$rootDir/config/static-network-config.json"
|
2023-05-11 12:29:11 +02:00
|
|
|
r3RootCertFile = "config/r3-ca-key.pem"
|
2023-04-11 18:25:31 +02:00
|
|
|
corDappCpiName = "MyCorDapp"
|
|
|
|
notaryCpiName = "NotaryServer"
|
|
|
|
cordaRpcUser = "admin"
|
|
|
|
cordaRpcPasswd ="admin"
|
2023-05-18 17:31:28 +02:00
|
|
|
workflowsModuleName = workflowsModule
|
2023-08-03 16:17:40 +02:00
|
|
|
csdeWorkspaceDir = "$rootDir/workspace"
|
2023-04-11 18:25:31 +02:00
|
|
|
notaryVersion = cordaNotaryPluginsVersion
|
2023-04-18 15:56:26 +02:00
|
|
|
combinedWorkerVersion = combinedWorkerJarVersion
|
2023-04-11 18:25:31 +02:00
|
|
|
postgresJdbcVersion = "42.4.3"
|
|
|
|
cordaDbContainerName = "CSDEpostgresql"
|
|
|
|
cordaBinDir = "${System.getProperty("user.home")}/.corda/corda5"
|
|
|
|
cordaCliBinDir = "${System.getProperty("user.home")}/.corda/cli"
|
|
|
|
}
|
|
|
|
|
2023-01-05 15:15:40 +01:00
|
|
|
// 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"
|
|
|
|
]
|
2022-10-13 00:04:51 +02:00
|
|
|
}
|
2022-10-13 18:50:50 +02:00
|
|
|
|
2023-01-05 15:15:40 +01:00
|
|
|
repositories {
|
|
|
|
// All dependencies are held in Maven Central
|
2023-04-11 18:25:31 +02:00
|
|
|
mavenLocal()
|
2023-01-05 15:15:40 +01:00
|
|
|
mavenCentral()
|
2022-10-14 14:20:24 +02:00
|
|
|
}
|
2022-10-13 00:04:51 +02:00
|
|
|
|
2023-01-05 15:15:40 +01:00
|
|
|
tasks.withType(Test).configureEach {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2022-10-13 00:04:51 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
2023-01-05 15:15:40 +01:00
|
|
|
maven(MavenPublication) {
|
|
|
|
artifactId "corda-CSDE-java-sample"
|
|
|
|
groupId project.group
|
|
|
|
artifact jar
|
2022-10-13 00:04:51 +02:00
|
|
|
}
|
2023-01-10 10:57:15 +01:00
|
|
|
|
|
|
|
}
|
2022-10-13 00:04:51 +02:00
|
|
|
}
|
2023-01-05 15:15:40 +01:00
|
|
|
|