Open theborakompanioni opened 1 year ago
Would it be possible to exclude the logback.xml file in the release builds?
I guess yes, but I need to see how I can do it with the current grade plugin, I guess this is the code that should include the fix https://github.com/clightning4j/JRPClightning/blob/master/gradle/release.gradle#L19
Would it be possible to exclude the logback.xml file in the release builds?
I guess yes, but I need to see how I can do it with the current grade plugin, I guess this is the code that should include the fix https://github.com/clightning4j/JRPClightning/blob/master/gradle/release.gradle#L19
I guess one can just include something like the following lines to the jar
task in build.gradle
:
jar {
exclude('logback.xml')
}
But let's first consider whether it really makes sense or if some other approach is better suited. ; -)
The current jar includes a logback configuration file.
If a downstream consumer also defines a
logback.xml
, logback will complain about it onstdout
, which makes cln killing the plugin. This happens even with<root level="OFF">
and no console appender defined.Context: https://stackoverflow.com/questions/3401051/suppress-all-logback-output-to-console Also: https://mailman.qos.ch/pipermail/logback-user/2010-August/001717.html
An additional side effect is that a
clightning4j
dir is created in the users home directory. Would it be possible to exclude thelogback.xml
file in the release builds?