Closed Xiphoseer closed 3 weeks ago
@Xiphoseer Would you like to provide a PR to this task?
Maybe. I've had some trouble in the past getting the project to build from source locally, would need to check with my employer and can't give and ETA right now, but in general I'm open to work with you on this.
This request is reasonable. Currently just some methods from guava are used, and maybe it can be replaced by handwritten methods to replace them so to get rid of the guava dep. I'll try to make a solution to this.
To me it looked like there are some legitimate test cases using guava so <scope>test</scope>
might be a good incremental step.
As far as I can tell, there's a single function where Googles
guava
is used outside of tests: https://github.com/jberet/jsr352/blob/8ef714318637f484f59f059164b5ba1dc006e018/jberet-core/src/main/java/org/jberet/repository/TableColumns.java#L111-L127Here, the
Throwables
class is used to turn the exception into a string, or if that is too long, to turn just the root cause into a string.With all dependencies of
jberet-core
being set toprovided
and only a note in the README, this makes it harder to run JBeret on Java SE. If guava is not added to the classpath, this ends up as a rawjava.lang.NoClassDefFoundError: com/google/common/base/Throwables
inorg.jberet.repository.TableColumns