0.2.9 was broken - for unknown reasons, the plugin was built on top of stale sources. Updates golang/go#21594 Plugin 0.2.10 was built with rev 50b7067 and this change. % docker run --rm -u root -v "$PWD":/home/gradle/project \ -w /home/gradle/project gradle:latest \ gradle publishPlugins Gradle version is 4.0.1. Change-Id: I146dc67cbad3c9945a2acdf4ac7993283725090a Reviewed-on: https://go-review.googlesource.com/86775 Reviewed-by: Elias Naur <elias.naur@gmail.com>
gobindPlugin invokes gomobile bind command on the specified package.
Usage
build.gradle:
plugins { id "org.golang.mobile.bind" version "0.2.10" } gobind { // Package to bind. Separate multiple packages with spaces. pkg="github.com/someone/somepackage" // GOPATH GOPATH="/home/gopher" // Optional list of architectures. Defaults to all supported architectures. GOARCH="arm amd64" // Absolute path to the gomobile binary. Optional. GOMOBILE="/mypath/bin/gomobile" // Absolute path to the gobind binary. Optional. GOBIND="/mypath/bin/gobind" // Absolute path to the go binary. Optional. GO="/usr/local/go/bin/go" // Pass extra parameters to command line. Optional. GOMOBILEFLAGS="-javapkg my.java.package" }
For details: https://plugins.gradle.org/plugin/org.golang.mobile.bind
TODO
- Find the stale aar file (how?)