48 lines
1.0 KiB
Groovy
48 lines
1.0 KiB
Groovy
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'
|
|
}
|
|
|
|
allprojects {
|
|
group 'com.r3.developers.csdetemplate'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
def javaVersion = VERSION_11
|
|
|
|
// 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
|
|
mavenCentral()
|
|
}
|
|
|
|
tasks.withType(Test).configureEach {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
maven(MavenPublication) {
|
|
artifactId "corda-CSDE-java-sample"
|
|
groupId project.group
|
|
artifact jar
|
|
}
|
|
|
|
}
|
|
}
|
|
|