2023-08-14 21:37:54 +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'
|
|
|
|
id 'net.corda.plugins.csde'
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
2023-08-30 20:43:31 +02:00
|
|
|
group 'djmil.cordacheckers'
|
2023-08-14 21:37:54 +02:00
|
|
|
version '1.0-SNAPSHOT'
|
|
|
|
|
|
|
|
def javaVersion = VERSION_11
|
|
|
|
|
|
|
|
// Configure the CSDE
|
|
|
|
csde {
|
|
|
|
cordaClusterURL = "https://localhost:8888"
|
2023-09-13 12:51:14 +02:00
|
|
|
networkConfigFile = "config/static-network-config.json"
|
2023-08-14 21:37:54 +02:00
|
|
|
r3RootCertFile = "config/r3-ca-key.pem"
|
2023-09-22 13:07:25 +02:00
|
|
|
corDappCpiName = "CordaCheckers"
|
2023-08-14 21:37:54 +02:00
|
|
|
notaryCpiName = "NotaryServer"
|
|
|
|
cordaRpcUser = "admin"
|
|
|
|
cordaRpcPasswd ="admin"
|
|
|
|
workflowsModuleName = workflowsModule
|
2023-09-13 12:51:14 +02:00
|
|
|
csdeWorkspaceDir = "workspace"
|
2023-08-14 21:37:54 +02:00
|
|
|
notaryVersion = cordaNotaryPluginsVersion
|
|
|
|
combinedWorkerVersion = combinedWorkerJarVersion
|
|
|
|
postgresJdbcVersion = "42.4.3"
|
|
|
|
cordaDbContainerName = "CSDEpostgresql"
|
|
|
|
cordaBinDir = "${System.getProperty("user.home")}/.corda/corda5"
|
|
|
|
cordaCliBinDir = "${System.getProperty("user.home")}/.corda/cli"
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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-CSDE-java-sample"
|
|
|
|
groupId project.group
|
|
|
|
artifact jar
|
2023-09-22 13:07:25 +02:00
|
|
|
}
|
2023-08-14 21:37:54 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|