$ gradle clean :BigQueryWorkloadTester:build
> Task :BigQueryWorkloadTester:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':BigQueryWorkloadTester:compileJava'.
> Could not resolve all files for configuration ':BigQueryWorkloadTester:compileClasspath'.
> Could not resolve com.google.auto.value:auto-value:1.6.3.
Required by:
project :BigQueryWorkloadTester
> Could not resolve com.google.auto.value:auto-value:1.6.3.
> Could not get resource 'http://repo.maven.apache.org/maven2/com/google/auto/value/auto-value/1.6.3/auto-value-1.6.3.pom'.
> Could not HEAD 'http://repo.maven.apache.org/maven2/com/google/auto/value/auto-value/1.6.3/auto-value-1.6.3.pom'. Received status code 501 from server: HTTPS Required
> Could not resolve com.google.auto.value:auto-value-annotations:1.6.3.
Required by:
project :BigQueryWorkloadTester
> Could not resolve com.google.auto.value:auto-value-annotations:1.6.3.
> Could not get resource 'http://repo.maven.apache.org/maven2/com/google/auto/value/auto-value-annotations/1.6.3/auto-value-annotations-1.6.3.pom'.
> Could not HEAD 'http://repo.maven.apache.org/maven2/com/google/auto/value/auto-value-annotations/1.6.3/auto-value-annotations-1.6.3.pom'. Received status code 501 from server: HTTPS Required
> Could not resolve com.google.auto.value:auto-value:1.6.3.
Required by:
project :BigQueryWorkloadTester > com.google.cloud:google-cloud-bigquery:1.56.0
> Could not resolve com.google.auto.value:auto-value:1.6.3.
> Could not get resource 'http://repo.maven.apache.org/maven2/com/google/auto/value/auto-value/1.6.3/auto-value-1.6.3.pom'.
> Could not HEAD 'http://repo.maven.apache.org/maven2/com/google/auto/value/auto-value/1.6.3/auto-value-1.6.3.pom'. Received status code 501 from server: HTTPS Required
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 3s
2 actionable tasks: 1 executed, 1 up-to-date
The problem:
> Could not HEAD 'http://repo.maven.apache.org/maven2/com/google/auto/value/auto-value/1.6.3/auto-value-1.6.3.pom'. Received status code 501 from server: HTTPS Required
Once this is resolved by changing the URL scheme for repo.maven.apache.org to https, the build fails with an error related to AutoValue:
$ gradle clean :BigQueryWorkloadTester:build
> Task :BigQueryWorkloadTester:compileJava FAILED
/Users/vincegonzalez/src/pontem-gradle-issues/BigQueryWorkloadTester/src/main/java/com/google/cloud/pontem/model/WorkloadResult.java:30: error: package AutoValue_WorkloadResult does not exist
return new AutoValue_WorkloadResult.Builder();
^
/Users/vincegonzalez/src/pontem-gradle-issues/BigQueryWorkloadTester/src/main/java/com/google/cloud/pontem/model/QueryResult.java:27: error: package AutoValue_QueryResult does not exist
return new AutoValue_QueryResult.Builder();
^
/Users/vincegonzalez/src/pontem-gradle-issues/BigQueryWorkloadTester/src/main/java/com/google/cloud/pontem/model/BigQueryResult.java:27: error: package AutoValue_BigQueryResult does not exist
return new AutoValue_BigQueryResult.Builder();
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':BigQueryWorkloadTester:compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 798ms
2 actionable tasks: 2 executed
After a
git clone
build with gradle 5.6.3 fails:The problem:
Once this is resolved by changing the URL scheme for repo.maven.apache.org to https, the build fails with an error related to AutoValue: