2017-03-08 17:21:43 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
|
|
apply plugin: 'net.corda.plugins.publish-utils'
|
2017-06-26 17:07:56 +00:00
|
|
|
apply plugin: 'com.jfrog.artifactory'
|
2017-03-08 17:21:43 +00:00
|
|
|
|
2017-03-28 09:40:44 +00:00
|
|
|
description 'Corda verifier'
|
2017-03-08 17:21:43 +00:00
|
|
|
|
|
|
|
//noinspection GroovyAssignabilityCheck
|
|
|
|
configurations {
|
|
|
|
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')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-05-05 12:12:36 +00:00
|
|
|
// Use manual resource copying of log4j2.xml rather than source sets.
|
|
|
|
// This prevents problems in IntelliJ with regard to duplicate source roots.
|
|
|
|
processResources {
|
|
|
|
from file("$rootDir/config/dev/log4j2.xml")
|
|
|
|
}
|
|
|
|
|
2017-03-08 17:21:43 +00:00
|
|
|
dependencies {
|
|
|
|
compile project(":node-api")
|
|
|
|
|
2017-03-30 15:27:01 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
|
2017-03-08 17:21:43 +00:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
2017-03-28 09:40:44 +00:00
|
|
|
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
2017-03-08 17:21:43 +00:00
|
|
|
compile "org.apache.activemq:artemis-core-client:${artemis_version}"
|
|
|
|
|
|
|
|
// Log4J: logging framework (with SLF4J bindings)
|
|
|
|
compile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
|
|
|
|
compile "org.apache.logging.log4j:log4j-core:${log4j_version}"
|
|
|
|
|
|
|
|
integrationTestCompile project(":test-utils")
|
|
|
|
integrationTestCompile project(":client:mock")
|
|
|
|
|
|
|
|
// Integration test helpers
|
|
|
|
integrationTestCompile "junit:junit:$junit_version"
|
|
|
|
|
|
|
|
integrationTestCompile "org.apache.activemq:artemis-server:${artemis_version}"
|
|
|
|
}
|
|
|
|
|
|
|
|
task standaloneJar(type: Jar) {
|
|
|
|
// Create a fat jar by packing all deps into the output
|
|
|
|
from {
|
|
|
|
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
|
|
|
}
|
2017-05-22 11:11:31 +00:00
|
|
|
with jar
|
2017-03-08 17:21:43 +00:00
|
|
|
exclude("META-INF/*.DSA")
|
|
|
|
exclude("META-INF/*.RSA")
|
|
|
|
exclude("META-INF/*.SF")
|
|
|
|
manifest {
|
|
|
|
attributes 'Main-Class': 'net.corda.verifier.Verifier'
|
|
|
|
}
|
|
|
|
archiveName "corda-verifier.jar"
|
|
|
|
}
|
|
|
|
|
|
|
|
task integrationTest(type: Test) {
|
|
|
|
testClassesDir = sourceSets.integrationTest.output.classesDir
|
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
|
|
}
|
2017-05-22 11:11:31 +00:00
|
|
|
|
2017-06-06 14:05:47 +00:00
|
|
|
artifacts {
|
|
|
|
publish standaloneJar {
|
|
|
|
classifier ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publish {
|
|
|
|
disableDefaultJar = true
|
2017-07-18 11:34:56 +00:00
|
|
|
name 'corda-verifier'
|
2017-06-06 14:05:47 +00:00
|
|
|
}
|