Closed marceligrabowski closed 1 year ago
Hey, Thx for pointing this out. The library should not hinder native image compilation. As you already mentioned logback could be the problem here. Can you provide a pull request?
@christian-draeger I'll try prepare something this week ;)
Thank you 🙌
Okay. For now the most obvious thing to do is to remove logback.xml
but I suspect that it's not welcomed solution. I'll try with setting up logback config programatically - not through xml file
Sounds like a good idea. I had same problem in spring projects that uses native image compilation and logback-spring.xml. Migrating away from logback.xml fixed this problem and was easy in that case because logger can be configured via application.yaml as well. Not sure how to do in none spring projects. But in general not using logback.xml seems to be a good and pragmatic solution.
@christian-draeger Just added PR with changes. It looks like it works like a charm 🎉
Thx a lot :) will merge it tomorrow
As #203 is merged we can consider it as closed completed 🥳✅ Release of new version in near future would be helpful. Maybe after #202 is resolved (I can take a look at it)
Is your feature request related to a problem? Please describe. I was wondering if it's bug report or feature request but it would be nice to have support for native image building e.g. Spring Native. Currently skrape.it added as dependency instantly fails build process. It might be connected to usage of logback.xml here. I did small reproduction of this problem with logback and it turned out that it can fail build while having logback.xml in classpath
Describe the solution you'd like Skrape.it supporting native image building.
Additional context
It might be related to https://github.com/spring-projects-experimental/spring-native/issues/625