In this tutorial, http://www.sqlitetutorial.net/sqlite-java/sqlite-jdbc-driver/, about using sqlite with java, it starts by downloading the JDBC driver from the following website, https://bitbucket.org/xerial/sqlite-jdbc/downloads/. After that it then adds the driver to the project using a Maven build system.
I have had a look around and I cannot see what you should if you are using Gradle? What steps should you take before you the code?
I am using the Intellij IDE if this makes any difference.