conf_data = configuration_data() conf_data.set('foobar', 'true') config_file = configure_file(input : 'Config.java.in', output : 'Config.java', configuration : conf_data)