简体   繁体   中英

What are the jars provided by an application server?

I am switching my build chain from the one provided by Eclipse to Gradle. When I develop a web application in Eclipse, I used to add a particular server runtime, so to have the jars provided by the application server already in the classpath.

Now that I am swtiching to Gradle, how do I know what are the jars provided from the application server and which must consequently indicated as providedCompile instead of compile ?

This might help you. in essence, you'll need the 'war' gradle plugin: https://gesellix.net/providedcompile-and-compile-dependencies-with-gradle/

It would depend on your app server: they all come with different JARs (obviously stuff like Servlet etc being provided by all)

You could remove the Server Runtime from your Eclipse classpath and see what breaks?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM