Repository navigation
Add transitive compileOnlyApi (requires static) dependencies - #3450
Conversation
|
@jjohannes, I've just released |
|
@ppkarwasz, shall we also add a test for this to |
What test do you have in mind? Do we test that a certain dependency is in the Gradle |
|
@vy I rebased the PR and re-tested. I also checked the changes in If it fits, the sample Gradle project I created could be moved to |
@jjohannes, sounds plausible, thanks! We can run |
I would prefer not to use
Since 1 and 2 only differ by the JDK used, we could use the GraalVM JDK for both and merge them. |
|
What you could do is rename workflows/android-reusable-test.yaml to something like Then you can add another step that runs Gradle against the new example similar to this one that runs the Android example. If that sounds like a good way forward to you, I can provide a (Draft) PR with the new example. |
Sounds good to me. |
|
@jjohannes, I liked this proposal. Looking forward to your PR. Note that both @ppkarwasz and I are swamped with work at the moment. Please be patient while waiting for feedback and/or reviews. |
|
Here is the PR for the samples repo: apache/logging-log4j-samples#279 @vy no problem. There is no urgency from my side. Let me know if I can help with anything else. |
vy
left a comment
There was a problem hiding this comment.
@jjohannes, thanks so much for the fix!
@ppkarwasz, changes LGTM. Would you mind also skimming through, please?
ppkarwasz
left a comment
There was a problem hiding this comment.
Looks good to me.
There is one missing annotation library and we are good to go!
See #3437 for details. Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
|
The CI build no. 14389096405, which includes the integration tests in |
With release 2.25.0 this can now be done properly, as it includes apache/logging-log4j2#3450 Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
This pull requests adds
compileOnlyApidependencies (Gradle Module Metadata) andrequires static(module-info) for all annotation libraries used in Log4j. See #3437 for details.The following example can be used to test the effects of the change in a Gradle build on a locally built snapshot:
https://github.com/jjohannes/gradle-demos/tree/main/log4j-metadata
Checklist
2.xbranch if you are targeting Log4j 2; usemainotherwise./mvnw verifysucceeds (if it fails due to code formatting issues reported by Spotless, simply run./mvnw spotless:applyand retry)src/changelog/.2.x.xdirectory