diff --git a/messaging/messaging_java/build.gradle b/messaging/messaging_java/build.gradle index 9a2126f779..6b2fccefc9 100644 --- a/messaging/messaging_java/build.gradle +++ b/messaging/messaging_java/build.gradle @@ -81,6 +81,14 @@ afterEvaluate { 'https://github.com/google/flatbuffers.git', flatbuffersDir } + exec { + executable 'git' + args 'apply', + '../../scripts/git/patches/flatbuffers/0001-remove-unused-var.patch', + '--verbose', + '--directory', + 'messaging/messaging_java/build/flatbuffers' + } } // Locate or build flatc.