https://kotlinlang.org logo
#exposed
Title
# exposed
a

aaronfox

08/14/2017, 6:44 PM
I have this dependency:
Copy code
<dependency>
            <groupId>com.mysql</groupId>
            <artifactId>jdbc</artifactId>
            <version>5.1.43</version>
        </dependency>
v

v79

08/14/2017, 6:51 PM
If you can convert this gradle to maven, I got it to work with
Copy code
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.7-dmr'
a

aaronfox

08/15/2017, 12:00 PM
I'm not quite sure how to do that without swapping to grade unfortunately
g

gildor

08/15/2017, 12:56 PM
@aaronfox just add it to your dependencies: <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.41</version> </dependency>
a

aaronfox

08/15/2017, 1:19 PM
Okay, I'll try that when I get home from work. Cheers
Using this, it causes the same exception
g

gildor

08/16/2017, 1:33 AM
It’s really strange. Do you have access to
com.mysql.jdbc.Driver()
in runtime?
a

aaronfox

08/16/2017, 6:39 PM
yup
This beforehand compiles
Copy code
Class.forName("com.mysql.jdbc.Driver")
 com.mysql.jdbc.Driver()
but it still throws an exception when it attempts to perform a transaction stating there is no suitable driver when there clearly is
@gildor