mirror of
https://github.com/corda/corda.git
synced 2025-01-01 18:56:44 +00:00
44a7d872d8
* IRS Demo - split IRS Demo into two separate applications to showcase the separation and usage of RPC client
55 lines
1.7 KiB
Groovy
55 lines
1.7 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlin_version}")
|
|
}
|
|
}
|
|
|
|
// Spring Boot plugin adds a numerous hardcoded dependencies in the version much lower then Corda expects
|
|
// causing the problems in runtime. Those can be changed by manipulating above properties
|
|
// See https://github.com/spring-gradle-plugins/dependency-management-plugin/blob/master/README.md#changing-the-value-of-a-version-property
|
|
ext['artemis.version'] = "$artemis_version"
|
|
ext['hibernate.version'] = "$hibernate_version"
|
|
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'kotlin-spring'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'org.springframework.boot'
|
|
apply plugin: 'project-report'
|
|
apply plugin: 'application'
|
|
|
|
dependencies {
|
|
compile('org.springframework.boot:spring-boot-starter-web') {
|
|
exclude module: "spring-boot-starter-logging"
|
|
exclude module: "logback-classic"
|
|
}
|
|
compile("com.fasterxml.jackson.module:jackson-module-kotlin:2.8.9")
|
|
compile project(":client:rpc")
|
|
compile project(":client:jackson")
|
|
compile project(":test-utils")
|
|
compile project(path: ":samples:irs-demo:cordapp", configuration: "demoArtifacts")
|
|
testCompile('org.springframework.boot:spring-boot-starter-test') {
|
|
exclude module: "spring-boot-starter-logging"
|
|
exclude module: "logback-classic"
|
|
}
|
|
}
|
|
|
|
jar {
|
|
from sourceSets.test.output
|
|
}
|
|
|
|
task deployWebapps(type: Copy, dependsOn: ['jar', 'bootRepackage']) {
|
|
ext.webappDir = file("build/webapps")
|
|
|
|
from(jar.outputs)
|
|
from("src/test/resources/scripts/") {
|
|
filter { it
|
|
.replace('#JAR_PATH#', jar.archiveName)
|
|
.replace('#DIR#', ext.webappDir.getAbsolutePath())
|
|
}
|
|
}
|
|
into ext.webappDir
|
|
} |