From 2ea3af72fe0a7407c57560f13fb8077841c025a4 Mon Sep 17 00:00:00 2001 From: Wojciech Lukowicz Date: Tue, 3 Sep 2024 10:42:46 +0100 Subject: [PATCH] make sure tasks generating FIX codecs treat dictionaries as inputs --- build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 8bd69083a0..b6ea632902 100644 --- a/build.gradle +++ b/build.gradle @@ -639,7 +639,9 @@ project(':artio-session-codecs') { tasks.register('generateCodecs', JavaExec) { mainClass.set('uk.co.real_logic.artio.dictionary.CodecGenerationTool') classpath = configurations.codecGeneration - args = [generatedDir, 'src/main/resources/session_dictionary.xml'] + def dictionaryFile = 'src/main/resources/session_dictionary.xml' + inputs.file(dictionaryFile) + args = [generatedDir, dictionaryFile] outputs.dir generatedDir systemProperty("fix.codecs.flyweight", "true") } @@ -647,7 +649,9 @@ project(':artio-session-codecs') { tasks.register('generateOtherCodecs', JavaExec) { mainClass.set('uk.co.real_logic.artio.dictionary.CodecGenerationTool') classpath = configurations.codecGeneration - args = [generatedDir, 'src/main/resources/other_session_dictionary.xml'] + def dictionaryFile = 'src/main/resources/other_session_dictionary.xml' + inputs.file(dictionaryFile) + args = [generatedDir, dictionaryFile] outputs.dir generatedDir systemProperty("fix.codecs.flyweight", "true") systemProperty("fix.codecs.parent_package", "uk.co.real_logic.artio.other")