I created a new project with start.grails.org

   - Rest API
   - Java 17
   - 7.0.0-M4
   - Gorm Hibernate5
   - Spring Boot Starter Tomcat
   - JUnit
   - Additional selected features: MySQL


Attempted to run it without any changes:

./gradlew bootRun


gives an error including:

FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':configureGroovyCompilerGrailsCore'.

> Could not resolve all files for configuration ':runtimeClasspath'.

   > Could not find mysql:mysql-connector-java:.

     Required by:

         root project :


The dependency on "mysql:mysql-connector-java" in build.gradle looks
incorrect, and is different than what earlier versions needed. I changed
the line in build.grade to this:

runtimeOnly "com.mysql:mysql-connector-j"

and it compiles and starts without issue.

Allen

Reply via email to