2017-10-25 15:40:21 +00:00
|
|
|
buildscript {
|
|
|
|
ext {
|
2018-02-07 12:16:16 +00:00
|
|
|
springBootVersion = '1.5.10.RELEASE'
|
2017-10-25 15:40:21 +00:00
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
2018-02-07 12:16:16 +00:00
|
|
|
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
|
|
|
|
classpath "io.spring.gradle:dependency-management-plugin:1.0.4.RELEASE"
|
2017-10-25 15:40:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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"
|
2018-02-05 11:42:20 +00:00
|
|
|
ext['selenium.version'] = "$selenium_version"
|
2018-02-07 12:16:16 +00:00
|
|
|
ext['jackson.version'] = "$jackson_version"
|
2017-10-25 15:40:21 +00:00
|
|
|
|
2016-11-17 11:03:40 +00:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'idea'
|
2017-10-25 15:40:21 +00:00
|
|
|
apply plugin: 'org.springframework.boot'
|
2016-11-17 11:03:40 +00:00
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
2016-11-18 11:58:55 +00:00
|
|
|
apply plugin: 'application'
|
2016-11-17 11:03:40 +00:00
|
|
|
|
2016-11-18 11:58:55 +00:00
|
|
|
mainClassName = 'net.corda.irs.IRSDemo'
|
|
|
|
|
2016-11-17 11:03:40 +00:00
|
|
|
sourceSets {
|
|
|
|
integrationTest {
|
|
|
|
kotlin {
|
|
|
|
compileClasspath += main.output + test.output
|
|
|
|
runtimeClasspath += main.output + test.output
|
|
|
|
srcDir file('src/integration-test/kotlin')
|
|
|
|
}
|
|
|
|
}
|
2018-02-05 11:42:20 +00:00
|
|
|
systemTest {
|
|
|
|
kotlin {
|
|
|
|
compileClasspath += main.output + test.output
|
|
|
|
runtimeClasspath += main.output + test.output
|
|
|
|
srcDir file('src/system-test/kotlin')
|
|
|
|
}
|
|
|
|
}
|
2016-11-17 11:03:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
integrationTestCompile.extendsFrom testCompile
|
|
|
|
integrationTestRuntime.extendsFrom testRuntime
|
2017-10-25 15:40:21 +00:00
|
|
|
demoArtifacts.extendsFrom testRuntime
|
2018-02-05 11:42:20 +00:00
|
|
|
systemTestCompile.extendsFrom testCompile
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url 'https://dl.bintray.com/palantir/releases' // docker-compose-rule is published on bintray
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
maven { url 'https://jitpack.io' }
|
|
|
|
}
|
2016-11-17 11:03:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2017-10-25 15:40:21 +00:00
|
|
|
compile group: 'commons-io', name: 'commons-io', version: '2.5'
|
|
|
|
compile project(path: ":samples:irs-demo:cordapp", configuration: "demoArtifacts")
|
|
|
|
compile project(":samples:irs-demo:web")
|
|
|
|
compile('org.springframework.boot:spring-boot-starter-web') {
|
|
|
|
exclude module: "spring-boot-starter-logging"
|
|
|
|
exclude module: "logback-classic"
|
|
|
|
}
|
2017-06-14 14:59:17 +00:00
|
|
|
|
2017-09-05 08:50:51 +00:00
|
|
|
testCompile project(':node-driver')
|
2017-06-14 14:59:17 +00:00
|
|
|
testCompile "junit:junit:$junit_version"
|
|
|
|
testCompile "org.assertj:assertj-core:${assertj_version}"
|
2017-12-15 15:29:54 +00:00
|
|
|
|
|
|
|
integrationTestCompile project(path: ":samples:irs-demo:web", configuration: "demoArtifacts")
|
2018-02-05 11:42:20 +00:00
|
|
|
testCompile "com.palantir.docker.compose:docker-compose-rule-junit4:$docker_compose_rule_version"
|
|
|
|
testCompile "org.seleniumhq.selenium:selenium-java:$selenium_version"
|
|
|
|
testCompile "com.github.detro:ghostdriver:$ghostdriver_version"
|
2016-11-17 11:03:40 +00:00
|
|
|
}
|
|
|
|
|
2017-10-25 15:40:21 +00:00
|
|
|
bootRepackage {
|
|
|
|
enabled = false
|
2016-11-17 11:03:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task integrationTest(type: Test, dependsOn: []) {
|
2017-08-24 15:46:54 +00:00
|
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
2016-11-17 11:03:40 +00:00
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
|
|
}
|
|
|
|
|
2018-02-05 11:42:20 +00:00
|
|
|
evaluationDependsOn("cordapp")
|
|
|
|
evaluationDependsOn("web")
|
|
|
|
|
|
|
|
task systemTest(type: Test, dependsOn: ["cordapp:prepareDockerNodes", "web:generateDockerCompose"]) {
|
|
|
|
testClassesDirs = sourceSets.systemTest.output.classesDirs
|
|
|
|
classpath = sourceSets.systemTest.runtimeClasspath
|
|
|
|
|
|
|
|
systemProperty "CORDAPP_DOCKER_COMPOSE", tasks.getByPath("cordapp:prepareDockerNodes").dockerComposePath.toString()
|
|
|
|
systemProperty "WEB_DOCKER_COMPOSE", tasks.getByPath("web:generateDockerCompose").dockerComposePath.toString()
|
|
|
|
|
|
|
|
def phantomJsPath = System.getProperty("phantomjs.binary.path") ?: System.getenv("PHANTOMJS_BINARY_PATH")
|
|
|
|
if (phantomJsPath != null) {
|
|
|
|
systemProperty "phantomjs.binary.path", phantomJsPath
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-17 11:03:40 +00:00
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
downloadJavadoc = true // defaults to false
|
|
|
|
downloadSources = true
|
|
|
|
}
|
2017-10-25 15:40:21 +00:00
|
|
|
}
|