You will not able to use build.sh any more (standalone build of query) because of complex dependency . Track via MB-48606. You need to use cluster couchbase build using manifest.
NOTE: You will not able to build enterprise version of the build due to some repos are closed source.