ahmedabu98 opened a new issue, #28898:
URL: https://github.com/apache/beam/issues/28898
### What happened?
Around the same time that Gradle 8 got upgraded (#28756), the nightly
snapshot has been failing on both Jenkins and GHA. For both, I'm seeing errors
with many Gradle task configurations that go like:
```
Some problems were found with the configuration of task
':sdks:java:core:testSourcesJar' (type 'Jar').
- Gradle detected a problem with the following location:
'/home/jenkins/jenkins-agent/26ff11f4/workspace/beam_Release_NightlySnapshot/src/sdks/java/core/build/generated-test-avro-java'.
Reason: Task ':sdks:java:core:testSourcesJar' uses this output of task
':sdks:java:core:generateTestAvroJava' without declaring an explicit or
implicit dependency. This can lead to incorrect results being produced,
depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':sdks:java:core:generateTestAvroJava' as an input of
':sdks:java:core:testSourcesJar'.
2. Declare an explicit dependency on
':sdks:java:core:generateTestAvroJava' from ':sdks:java:core:testSourcesJar'
using Task#dependsOn.
3. Declare an explicit dependency on
':sdks:java:core:generateTestAvroJava' from ':sdks:java:core:testSourcesJar'
using Task#mustRunAfter.
For more information, please refer to
https://docs.gradle.org/8.3/userguide/validation_problems.html#implicit_dependency
in the Gradle documentation.
```
Looks like Gradle 8 is more strict on declaring dependencies.
### Issue Priority
Priority: 1 (data loss / total loss of function)
### Issue Components
- [ ] Component: Python SDK
- [ ] Component: Java SDK
- [ ] Component: Go SDK
- [ ] Component: Typescript SDK
- [ ] Component: IO connector
- [ ] Component: Beam YAML
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [ ] Component: Spark Runner
- [ ] Component: Flink Runner
- [ ] Component: Samza Runner
- [ ] Component: Twister2 Runner
- [ ] Component: Hazelcast Jet Runner
- [ ] Component: Google Cloud Dataflow Runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]