i would like to use spring framework in my project with gradle
in build.gradle, i put
compile group: ‘org.apache.logging.log4j’, name: ‘log4j-api’, version: '2.7’
compile group: ‘org.apache.logging.log4j’, name: ‘log4j-core’, version: '2.7’
testCompile group: ‘junit’, name: ‘junit’, version: '4.12’
it builds successfully.
I know the dependencies is collected into WAR file, but they are not added to the WEB-INF/lib folder.
So there are errors when i import org.springframework.stereotype.Component in the java file.
Do i need to download the dependencies and put them in WEB-INF/lib by myself?
if i have to download files manually to use them? why we use gradle to build the project?