mirror of
https://github.com/corda/corda.git
synced 2024-12-25 23:51:10 +00:00
CORDA-3218: Align DJVM with internal Corda Serialisation API. (#68)
* Align DJVM with internal Corda Serialisation API. * Ensure we get the latest SNAPSHOT of the serialisation code.
This commit is contained in:
parent
e0ce1bd525
commit
394d503d41
@ -25,7 +25,7 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
configurations{
|
||||
configurations {
|
||||
// This is for the latest deterministic Corda SNAPSHOT artifacts...
|
||||
[ compileClasspath, runtimeClasspath ].forEach { cfg ->
|
||||
cfg.resolutionStrategy {
|
||||
@ -38,6 +38,11 @@ allprojects {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
testRuntimeClasspath.resolutionStrategy {
|
||||
// Always check the repository for a newer SNAPSHOT.
|
||||
cacheChangingModulesFor 0, 'seconds'
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -14,6 +14,7 @@ import java.util.*
|
||||
import java.util.Collections.singleton
|
||||
import java.util.Collections.unmodifiableMap
|
||||
import java.util.function.Function
|
||||
import java.util.function.Predicate
|
||||
|
||||
/**
|
||||
* This has all been lovingly copied from [SerializerFactoryBuilder].
|
||||
@ -60,6 +61,7 @@ class SandboxSerializerFactoryFactory(
|
||||
classloader = classLoader,
|
||||
descriptorBasedSerializerRegistry = descriptorBasedSerializerRegistry,
|
||||
primitiveSerializerFactory = primitiveSerializerFactory,
|
||||
isPrimitiveType = Predicate { clazz -> clazz.isPrimitive || clazz in primitiveTypes.keys },
|
||||
customSerializerRegistry = customSerializerRegistry,
|
||||
onlyCustomSerializers = false
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user