kafka avro with java“$velocitycount尚未设置为”

mctunoxg  于 2021-06-04  发布在  Kafka
关注(0)|答案(0)|浏览(287)

我一直在尝试创建一个java项目,当我需要使用avro发布关于kafka主题的文章时。但我总是收到错误:

Execution failed for task ':generateAvroJava'.
> Variable $velocityCount has not been set at /org/apache/avro/compiler/specific/templates/java/classic/record.vm[line 124, column 150]

我用过:

buildscript {
   dependencies {
        classpath("com.commercehub.gradle.plugin:gradle-avro-plugin:${avroPluginVersion}")
    }
}

apply plugin: "com.commercehub.gradle.plugin.avro"

dependencies {
    ...
    implementation('org.apache.avro:avro:1.9.0')
    implementation('io.confluent:kafka-avro-serializer:3.2.1') {
        exclude group: 'org.slf4j'
    }
    avro {
        createSetters = false
        fieldVisibility = "PRIVATE"
    }

}

有人知道为什么吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题