-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: attempt to fix hiero dependency runtime to compile time only. #635
base: main
Are you sure you want to change the base?
Conversation
server/build.gradle.kts
Outdated
@@ -31,7 +32,7 @@ testModuleInfo { | |||
requires("org.mockito") | |||
requires("org.mockito.junit.jupiter") | |||
requires("org.assertj.core") | |||
requiresStatic("com.github.spotbugs.annotations") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is wrong. Having com.github.spotbugs.annotations
as requiresStatic
is correct in general. My assumption is that any dependency brings it in as a non-static transitive dependency. I will have a look again to give more information
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just did a force push
with try number 2 😅
Let me know if this fixes it, also, it would be nice to know if the analysis is something I can do locally on my branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change should be irrelevant for the runtime classpath. I expect that it would not change anything on the result.
As I explained here, there is nothing bringing it in transitive:
hiero-ledger/tsc#85 (comment)
You can check the build scans yourself if you have doubts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jjohannes what is the mainRuntimeClasspath?
![Bildschirmfoto 2025-02-13 um 09 13 55](https://private-user-images.githubusercontent.com/9443847/412789796-346932b3-a89b-4877-b7de-f3410c7638dc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MzU5MjAsIm5iZiI6MTczOTYzNTYyMCwicGF0aCI6Ii85NDQzODQ3LzQxMjc4OTc5Ni0zNDY5MzJiMy1hODliLTQ4NzctYjdkZS1mMzQxMGM3NjM4ZGMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMTYwNzAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmRlYjNjYWM5YzZmNzMxOTA0NTdjNjY0NzU5NmRkNGZiZWRmMzQwZDQxZTYyN2E2ZDI2ZGFlOTMxYjBjNmYwYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.E9ehUafJZYr6o5Y8MevkNoK-qYmXNzEMou6M0A1FUQc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I see the confusion. The name is not great for how we use it now. I should probably check if we can change it to something else that does not contain the term "RuntimeClasspath". It is used internally in the Gradle setup to create a "global scope" across all Modules using a few Gradle tricks. The goal is to have the same dependencies and versions available everywhere which we need for the Jar module-info patching. In the past it was only based on the runtime classpath (hence the name). But we noticed that sometimes the Jar patching was missing information about versions, which was because of "require static" (compileOnly) dependencies like this one that also needed patching.
Bottom line: This is something used internally for version consistency across all module of a project.
For the license check, we should only look at the standard runtimeClasspath
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jjohannes Thank you for the help and clarification! 🙏
@hendrikebbers, so we should be good then?
Signed-off-by: Alfredo Gutierrez <[email protected]>
Reviewer Notes
See the following issue: hiero-ledger/tsc#85
Related Issue(s)