[CORDA-2349] - Enable methods synthesized by Kotlin in api scanning (#4595)

This commit is contained in:
Dimos Raptis 2019-01-17 10:03:46 +00:00 committed by GitHub
parent 6b149f8aad
commit e46fdb547d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,4 @@
gradlePluginsVersion=4.0.38
gradlePluginsVersion=4.0.39
kotlinVersion=1.2.71
# ***************************************************************#
# When incrementing platformVersion make sure to update #

View File

@ -55,3 +55,15 @@ jar {
publish {
name jar.baseName
}
scanApi {
//Constructors that are synthesized by Kotlin unexpectedly
excludeMethods = [
"net.corda.testing.node.MockServices": [
"<init>(Lnet/corda/node/cordapp/CordappLoader;Lnet/corda/core/node/services/IdentityService;Lnet/corda/core/node/NetworkParameters;Lnet/corda/testing/core/TestIdentity;[Ljava/security/KeyPair;Lkotlin/jvm/internal/DefaultConstructorMarker;)V"
],
"net.corda.testing.node.InMemoryMessagingNetwork\$MessageTransfer": [
"<init>(Lnet/corda/testing/node/InMemoryMessagingNetwork\$PeerHandle;Lnet/corda/node/services/messaging/Message;Lnet/corda/core/messaging/MessageRecipients;Lkotlin/jvm/internal/DefaultConstructorMarker;)V"
]
]
}