Switch from Gradle to Maven.
diff --git a/protoc-artifacts/build-protoc.sh b/protoc-artifacts/build-protoc.sh
index f166c8b..4e0e549 100755
--- a/protoc-artifacts/build-protoc.sh
+++ b/protoc-artifacts/build-protoc.sh
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+cd $(dirname "$0")
+WORKING_DIR=$(pwd)
+
 # Override the default value set in configure.ac that has '-g' which produces
 # huge binary.
 export CXXFLAGS="-DNDEBUG"
@@ -16,4 +19,6 @@
   export CXXCPP=i686-pc-mingw32-cpp
 fi
 
-cd $(dirname "$0")/.. && ./configure --disable-shared && make clean && make
+cd "$WORKING_DIR"/.. && ./configure --disable-shared && make clean && make &&
+  cd "$WORKING_DIR" && mkdir -p target &&
+  (cp ../src/protoc target/protoc.exe || cp ../src/protoc.exe target/protoc.exe)