Question: what is the difference between compile and testcompile gradle?
Answer: 2 Answers. compile is the group of dependencies you need to build your application while testCompile is a group of dependencies that you need only for testing. This specifies that hibernate-core is needed to build your code but junit (a testing framework) is needed just for testing.