gregwhitaker / gradle-flatbuffers-plugin

Gradle plugin for generating code from Google FlatBuffers schemas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Old version of googles flatbuffers-java included.

dajoni opened this issue · comments

It should not be the responsibility of a plugin to modify the dependencies of the using project. Or at least make it optional.

The flatc compiler does not use the version included by this plugin. It goes by the version of the compiler. In my case, I was using flatc compiler version 1.11.0, so I had to download flatbuffer-java version that matches that

Dear maintainer, the best way to add a dependency from a plugin is to use one of the recommended ways mentioned in this gradle document.

configurations {
    pluginTool {
        defaultDependencies { dependencies ->
            dependencies.add(project.dependencies.create("org.gradle:my-util:1.0"))
        }
    }
}

This way, the user of the plugin can simply add an upgraded version of the dependency without worrying about removing the version added by the plugin