mirror of
https://github.com/corda/corda.git
synced 2024-12-23 14:52:29 +00:00
8415a01a47
Cordform common is now a full gradle plugin and all related gradle hacks are removed.
50 lines
1.3 KiB
Groovy
50 lines
1.3 KiB
Groovy
apply plugin: 'kotlin'
|
|
apply plugin: 'kotlin-jpa'
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
|
apply plugin: 'com.jfrog.artifactory'
|
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
configurations {
|
|
// we don't want isolated.jar in classPath, since we want to test jar being dynamically loaded as an attachment
|
|
runtime.exclude module: 'isolated'
|
|
|
|
integrationTestCompile.extendsFrom testCompile
|
|
integrationTestRuntime.extendsFrom testRuntime
|
|
}
|
|
|
|
sourceSets {
|
|
integrationTest {
|
|
kotlin {
|
|
compileClasspath += main.output + test.output
|
|
runtimeClasspath += main.output + test.output
|
|
srcDir file('src/integration-test/kotlin')
|
|
}
|
|
resources {
|
|
srcDir file('src/integration-test/resources')
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':test-utils')
|
|
compile "net.corda.plugins:cordform-common:$gradle_plugins_version"
|
|
|
|
// Integration test helpers
|
|
integrationTestCompile "org.assertj:assertj-core:${assertj_version}"
|
|
integrationTestCompile "junit:junit:$junit_version"
|
|
}
|
|
|
|
task integrationTest(type: Test) {
|
|
testClassesDirs = sourceSets.integrationTest.output.classesDirs
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
}
|
|
|
|
jar {
|
|
baseName 'corda-node-driver'
|
|
}
|
|
|
|
publish {
|
|
name jar.baseName
|
|
}
|