java - Gradle with IntelliJ not loading PostgreSQL JDBC as a dependency -
I am trying to set up IntelliJ with Gradal and Joko for my next project. At present, apply plugin: Apply "Java" plugin: "Jooq 'Srotsnsadnta = 1.5 version =" 1.0 "repository {mavenCentral ()} as dependencies now, it looks like my Gredl file:
< pre> {TestCompile group: "Junit" name: "Jnit", version: "4.11"} dependence {compile 'org.jooq: jooq: 3.1.0' compiled in "Comkgooglekguava: Guava: 14.0 'compile' postgresql: Postgresql: 9.1-901-1.jdbc4 '} Bildskript {repositories {mavenLocal () mavenCentral ()} dependence {classpath' postgresql: postgresql: 9.1-901-1.jdbc4 'classpath' com.github. Ben-manes: gradle-jooq-plugin: 0.5 '}} jooq {... snip ...} and so on My external dependencies (in IntelliJ) are shown:
.
Anyway, Gradle is downloading and IntelliJ is identifying jooq and guava as part of my dependency, but PostGrace does not show up. Therefore, while doing this work (use of evidence, dependency filled with Gradle):
list & lt; String & gt; StringList = Lists.NearAlrest (); It fails with a ClassNotFoundException :
class .for name ( "org.postgresql.Driver"). NewInstance (); a . / Gradlew build during , I noticed that the production has been observed in the production gradually it thr from Meven Central Downloading postgresql-9.1- 9 01 issue, but I do not know where to hang . Any help is greatly appreciated.
Of course, I really need to RTFM I Gradle in IntelliJ after changes Gradl script The dependency was not refreshed from the tool window. Found it from here:
Comments
Post a Comment