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'
|
|
|
|
id 'csde'
|
|
|
|
}
|
|
|
|
|
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-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
|
|
|
|
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
|
|
|
|