mirror of
https://github.com/corda/corda.git
synced 2025-04-07 11:27:01 +00:00
Demote quasar-core to a runtime dependency, and capsule to "compileOnly". (#1381)
This commit is contained in:
parent
2a794d9523
commit
66c35bbffa
@ -1,5 +1,5 @@
|
||||
gradlePluginsVersion=0.15.1
|
||||
gradlePluginsVersion=0.15.2
|
||||
kotlinVersion=1.1.4
|
||||
guavaVersion=21.0
|
||||
bouncycastleVersion=1.57
|
||||
typesafeConfigVersion=1.3.1
|
||||
typesafeConfigVersion=1.3.1
|
||||
|
@ -28,6 +28,9 @@ dependencies {
|
||||
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
|
||||
|
||||
// Quasar, for suspendable fibres.
|
||||
compileOnly "co.paralleluniverse:quasar-core:$quasar_version:jdk8"
|
||||
|
||||
// Thread safety annotations
|
||||
compile "com.google.code.findbugs:jsr305:3.0.1"
|
||||
|
||||
|
@ -14,7 +14,7 @@ class QuasarPlugin implements Plugin<Project> {
|
||||
// To add a local .jar dependency:
|
||||
// project.dependencies.add("quasar", project.files("${project.rootProject.projectDir}/lib/quasar.jar"))
|
||||
project.dependencies.add("quasar", "co.paralleluniverse:quasar-core:${project.rootProject.ext.quasar_version}:jdk8@jar")
|
||||
project.dependencies.add("compile", project.configurations.getByName("quasar"))
|
||||
project.dependencies.add("runtime", project.configurations.getByName("quasar"))
|
||||
|
||||
project.tasks.withType(Test) {
|
||||
jvmArgs "-javaagent:${project.configurations.quasar.singleFile}"
|
||||
|
@ -30,8 +30,10 @@ class FlowVersioningTest : NodeBasedTest() {
|
||||
private class PretendInitiatingCoreFlow(val initiatedParty: Party) : FlowLogic<Pair<Int, Int>>() {
|
||||
@Suspendable
|
||||
override fun call(): Pair<Int, Int> {
|
||||
// Execute receive() outside of the Pair constructor to avoid Kotlin/Quasar instrumentation bug.
|
||||
val alicePlatformVersionAccordingToBob = receive<Int>(initiatedParty).unwrap { it }
|
||||
return Pair(
|
||||
receive<Int>(initiatedParty).unwrap { it },
|
||||
alicePlatformVersionAccordingToBob,
|
||||
getFlowContext(initiatedParty).flowVersion
|
||||
)
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ dependencies {
|
||||
|
||||
// Cordapp dependencies
|
||||
// GraphStream: For visualisation
|
||||
compile 'co.paralleluniverse:capsule:1.0.3'
|
||||
compileOnly "co.paralleluniverse:capsule:$capsule_version"
|
||||
compile "org.graphstream:gs-core:1.3"
|
||||
compile "org.graphstream:gs-ui:1.3"
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ dependencies {
|
||||
task standaloneJar(type: Jar) {
|
||||
// Create a fat jar by packing all deps into the output
|
||||
from {
|
||||
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
}
|
||||
with jar
|
||||
exclude("META-INF/*.DSA")
|
||||
|
Loading…
x
Reference in New Issue
Block a user