Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigQueryWorkloadTester build fails due to http URL scheme for dependency #242

Open
vicenteg opened this issue May 16, 2020 · 0 comments · May be fixed by #243
Open

BigQueryWorkloadTester build fails due to http URL scheme for dependency #242

vicenteg opened this issue May 16, 2020 · 0 comments · May be fixed by #243

Comments

@vicenteg
Copy link
Contributor

After a git clone build with gradle 5.6.3 fails:

$ 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
vicenteg added a commit to vicenteg/pontem that referenced this issue May 16, 2020
@vicenteg vicenteg linked a pull request May 17, 2020 that will close this issue
vicenteg added a commit to vicenteg/pontem that referenced this issue May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant