From e46fdb547d3172f41989e6c0351b0beab8f62b64 Mon Sep 17 00:00:00 2001 From: Dimos Raptis Date: Thu, 17 Jan 2019 10:03:46 +0000 Subject: [PATCH] [CORDA-2349] - Enable methods synthesized by Kotlin in api scanning (#4595) --- constants.properties | 2 +- testing/node-driver/build.gradle | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/constants.properties b/constants.properties index b7ed08ca31..6076478c2c 100644 --- a/constants.properties +++ b/constants.properties @@ -1,4 +1,4 @@ -gradlePluginsVersion=4.0.38 +gradlePluginsVersion=4.0.39 kotlinVersion=1.2.71 # ***************************************************************# # When incrementing platformVersion make sure to update # diff --git a/testing/node-driver/build.gradle b/testing/node-driver/build.gradle index 102249761e..01de45b827 100644 --- a/testing/node-driver/build.gradle +++ b/testing/node-driver/build.gradle @@ -55,3 +55,15 @@ jar { publish { name jar.baseName } + +scanApi { + //Constructors that are synthesized by Kotlin unexpectedly + excludeMethods = [ + "net.corda.testing.node.MockServices": [ + "(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": [ + "(Lnet/corda/testing/node/InMemoryMessagingNetwork\$PeerHandle;Lnet/corda/node/services/messaging/Message;Lnet/corda/core/messaging/MessageRecipients;Lkotlin/jvm/internal/DefaultConstructorMarker;)V" + ] + ] +} \ No newline at end of file