1
Studying build tools like Maven, I saw that it is possible to declare the scope of a dependency only as Runtime, which would make it impossible to compile a code that uses it. As this is possible, do not compile a dependency but use it in Runtime?
1
Studying build tools like Maven, I saw that it is possible to declare the scope of a dependency only as Runtime, which would make it impossible to compile a code that uses it. As this is possible, do not compile a dependency but use it in Runtime?
1
There are dependencies that do not load all their classes into ClassLoader due to the cost of loading, and even because they can have several separate modules in several Jars.
Imagine the following:
Process of generation of documents
pdf, excel and word, also in this library, there are interfaces to make the generation of other formats more flexible by third partiespdf, excel, word...)That’s what the scope is for runtime, you know that one day you can use that module for some functionality, but you don’t use that dependency directly on your code.
Browser other questions tagged maven build runtime
You are not signed in. Login or sign up in order to post.