Open ronaldpatino opened 8 months ago
Same for me
grailsVersion=6.1.1 grailsGradlePluginVersion=6.1.1 grails-spring-security-core : 6.1.1 implementation("org.grails.plugins:spring-security-core:6.1.1") Java 11.0.21-zulu
Task :runCommand FAILED | Error Application class not found
FYI, the command started to work when I have commented this dependency:
// developmentOnly("org.springframework.boot:spring-boot-devtools")
But other error appeared. I think that is not related to this issue, the command finishes with an script error:
Configuring Spring Security Core ... ... finished configuring Spring Security Core Grails application running at http://localhost:0 in environment: development | Creating User class User in package com.example |
---|
Creating Role class Role in package com.example Rendered template PersonWithoutInjection.groovy.template to destination grails-app/domain/com/example/User.groovy Rendered template PersonPasswordEncoderListener.groovy.template to destination src/main/groovy/com/example/UserPasswordEncoderListener.groovy | Error Command execution error: grails-app/conf/spring/resources.groovy (No such file or directory)
@ronaldpatino Can you please write step-by step instructions to either create the application and how replicate this problem? or share a sample application to start with?
This would help us to quickly resolve this problem.
My steps: 1: Create an application from start.grails.org (Grails 6.2.0 2: Add line to build.gradle: implementation 'org.grails.plugins:spring-security-core:6.1.1' 3: ./gradlew runCommand "-Pargs=s2-quickstart my.application User Role" -> Fails 4: mkdir grails-app/conf/spring 5: Comment out (build.gradle) developmentOnly("org.springframework.boot:spring-boot-devtools") 6: ./gradlew runCommand "-Pargs=s2-quickstart my.application User Role"
It works now 7: undo step 5.
Issue description
The Plugin Version: 6.1.1 Grails Version: 6.1.1 Java: 17.0.9" 2023-10-17 LTS
The
gradle.properties
file:Run the following command from the Command Line/Terminal (from the project root):
Problem