attempting to gradle build in a no-internet enviro...
# troubleshoot
b
attempting to gradle build in a no-internet environment, i saw that metadata-integrationdatahub-protobuf is using JDK11 to build via Gradle Toolchains. Since i have no internet, i tried to install both JDK8 and 11 onto the machine and now im getting error msg:
Copy code
Task :datahub-graphql-core:compileJava 
/datahub/datahub-graphql-core/src/mainGeneratedGraphQL/java/com/linkedin/datahub/graphql/generated/VisualConfiguration.java:7: error: cannot find symbol @javax.annotation.processing.Generated(
symbol: class Generated
location: package javax.annotation.processing

<followed by all the other files in the same folder giving the same annotation error msg>
which i think is due to the presence of the JDK11. Any suggestions on overcoming this? the command i used to build was
Copy code
./gradlew build -x :metadata-ingestion:build -x :metadata-ingestion:check -x docs-website:build -x datahub-web-react:yarnBuild -x datahub-frontend:unzipAssets
./gradlew build -x :metadata-ingestion:build -x :metadata-ingestion:check -x docs-website:build -x :metadata-integration:java:spark-lineage:test
decided to skip :datahub-protobuf for now since it doesnt seem to be in use for the main project
h
Hi @better-orange-49102, it is definitely safe to skip building datahub-protobuf.
b
Thanks for confirming!