gradle-flatbuffers-plugin icon indicating copy to clipboard operation
gradle-flatbuffers-plugin copied to clipboard

Old version of googles flatbuffers-java included.

Open dajoni opened this issue 7 years ago • 2 comments
trafficstars

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

dajoni avatar Oct 11 '18 11:10 dajoni

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

smac89 avatar Sep 25 '19 23:09 smac89

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

smac89 avatar Sep 28 '19 01:09 smac89