You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "MartyIX (via GitHub)" <gi...@apache.org> on 2025/07/14 13:02:34 UTC
[PR] Gradle: Add `buildSrc` to the sample project [logging-log4j-samples]
MartyIX opened a new pull request, #350:
URL: https://github.com/apache/logging-log4j-samples/pull/350
This is an attempt to add `buildSrc` for https://github.com/apache/logging-log4j2/issues/3822 to address https://github.com/apache/logging-log4j2/issues/3779#issuecomment-3064916603.
However, I'm not sure why but 2.25.1 works here but not for my personal project. Meaning, I did not reproduce what I wrote here https://github.com/apache/logging-log4j2/issues/3779#issuecomment-3064916603.
Any thought @ppkarwasz please?
### Testing
```
# Fails (as expected)
export LOG4J_VERSION=2.25.0; ./gradlew :log4j-samples-gradle-metadata:build # Run from the repo's root directory!
# Works (but `buildSrc` project should report an error-prone version error but it does not.
export LOG4J_VERSION=2.25.1; ./gradlew :log4j-samples-gradle-metadata:build
```
--
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: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Gradle: Add `buildSrc` to the sample project [logging-log4j-samples]
Posted by "MartyIX (via GitHub)" <gi...@apache.org>.
MartyIX commented on PR #350:
URL: https://github.com/apache/logging-log4j-samples/pull/350#issuecomment-3074490645
That's great insight! I opened #351 which reports the error.
I'm closing this PR.
--
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: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Gradle: Add `buildSrc` to the sample project [logging-log4j-samples]
Posted by "MartyIX (via GitHub)" <gi...@apache.org>.
MartyIX closed pull request #350: Gradle: Add `buildSrc` to the sample project
URL: https://github.com/apache/logging-log4j-samples/pull/350
--
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: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Gradle: Add `buildSrc` to the sample project [logging-log4j-samples]
Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on PR #350:
URL: https://github.com/apache/logging-log4j-samples/pull/350#issuecomment-3069913098
Hi @MartyIX,
Thanks again for digging into this — even negative results are valuable, as they help us identify what might be missing in the test project.
Based on Copilot’s analysis, the error message you encountered doesn't appear to originate from Gradle itself, but rather from the [**Spring Dependency Management Plugin**](https://github.com/spring-gradle-plugins/dependency-management-plugin).
Would you be able to try applying the plugin to the `log4j-samples-gradle-metadata` project to see if it reproduces the issue? Ideally, it would be great if the problem can be triggered without introducing an additional `buildSrc` project.
You can apply the plugin like this:
```groovy
id "io.spring.dependency-management" version "1.1.7"
```
If that reproduces the error, could you also check whether switching to the native [Gradle platform support](https://docs.gradle.org/current/userguide/platforms.html#sec:bom-import) (via `platform()` or `enforcedPlatform()`) serves as a viable workaround in your own project?
--
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: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org