Add missing logger. (#817)

* Add missing logger.

* Ensure scenario code is compiled as part of the standard gradle build task.
This commit is contained in:
josecoll 2018-05-10 14:42:30 +01:00 committed by GitHub
parent 99d70fc197
commit 32011e05d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View File

@ -41,9 +41,7 @@ repositories {
sourceSets {
behave {
java {
compileClasspath += main.output
runtimeClasspath += main.output
kotlin {
srcDirs = ['src/main/kotlin', 'src/scenario/kotlin']
}
resources.srcDir file('src/scenario/resources')
@ -58,6 +56,12 @@ sourceSets {
srcDirs = ['src/scenario/resources']
}
}
main {
kotlin {
compileClasspath += sourceSets.behave.output
runtimeClasspath += sourceSets.behave.output
}
}
}
configurations {

View File

@ -15,11 +15,16 @@ import net.corda.behave.network.Network
import net.corda.behave.node.Distribution
import net.corda.behave.node.Node
import net.corda.core.messaging.CordaRPCOps
import net.corda.core.utilities.contextLogger
import org.assertj.core.api.Assertions.assertThat
import java.time.Duration
class ScenarioState {
companion object {
val log = contextLogger()
}
private val nodes = mutableListOf<Node.Builder>()
private var network: Network? = null