def classpathConfig = project.configurations.maybeCreate("gradleClasspath") | |
project.dependencies { | |
gradleClasspath "org.xerial:sqlite-jdbc:3.25.2" | |
} | |
def classloader = Thread.currentThread().contextClassLoader as URLClassLoader | |
classpathConfig.each { | |
classloader.addURL(it.toURI().toURL()) | |
} | |
project.configurations.remove(classpathConfig) | |
// Now you can use classes insdie the 'sqlite-jdbc' library. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment