NOAA-OWP / wres

Code and scripts for the Water Resources Evaluation Service
Other
2 stars 1 forks source link

As a developer, I want to update the protobuf dependencies to latest #70

Open ArvinEsmailzadeh opened 1 month ago

ArvinEsmailzadeh commented 1 month ago

Given outdated protobuf dependencies When I update them to latest (later than 0.9.1 for gradle plugin, later than 3.21.12 for other dependencies)

 ./gradlew clean build -p wres-statistics --console=plain

> Configure project :
20230112-33413a4-dev

> Task :wres-statistics:clean
> Task :wres-statistics:cleanProtoGeneratedDir UP-TO-DATE
> Task :wres-statistics:markdownToHtml
> Task :wres-statistics:copyProtoSchemaToDist
> Task :wres-statistics:extractIncludeProto
> Task :wres-statistics:generateProto

> Task :wres-statistics:compileJava FAILED
<SNIP>\wres\wres-statistics\src\main\java\module-info.java:4: error: module not found: com.google.protobuf
    requires com.google.protobuf;
                       ^
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':wres-statistics: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

BUILD FAILED in 13s
6 actionable tasks: 6 executed

Then I expect the build to succeed

ArvinEsmailzadeh commented 1 month ago

This is the issue:

https://github.com/protocolbuffers/protobuf/issues/12639

Concerns all protobuf dependencies after 3.21.12, not just the gradle plugin after 0.9.1.

Changing the title/details accordingly.