Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: GrailsGradlePlugin CRASHES if grails-app folder does not exist. #226

Closed
codeconsole opened this issue Oct 2, 2023 · 0 comments
Closed

Comments

@codeconsole
Copy link
Contributor

codeconsole commented Oct 2, 2023

grails-app folder should be optional.

 ./gradlew clean bootRun --stacktrace
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'org.grails.grails-web'.
        at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:173)
        at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:146)
        at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.lambda$applyLegacyPlugin$2(DefaultPluginRequestApplicator.java:160)
        at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyPlugin(DefaultPluginRequestApplicator.java:201)
        ... 164 more
Caused by: org.gradle.internal.operations.BuildOperationInvocationException: /Users/sheiberg/Documents/workspace/sitemesh3/sitemesh-examples-gsp/grails-app
        at org.gradle.internal.operations.DefaultBuildOperationRunner.throwAsBuildOperationInvocationException(DefaultBuildOperationRunner.java:192)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.access$100(DefaultBuildOperationRunner.java:24)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:75)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
        at org.gradle.api.internal.plugins.DefaultPluginManager.lambda$doApply$0(DefaultPluginManager.java:167)
        at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:44)
        at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultPluginManager.java:166)
        ... 167 more
Caused by: java.io.FileNotFoundException: /Users/sheiberg/Documents/workspace/sitemesh3/sitemesh-examples-gsp/grails-app
        at org.grails.gradle.plugin.core.GrailsGradlePlugin.resolveGrailsSourceDirs(GrailsGradlePlugin.groovy:358)

workaround is to have an empty grails-app folder, but that is kind of silly.

@codeconsole codeconsole changed the title BUG: GroovyPagesPlugin CRASHES if grails-app folder does not exist. BUG: GrailsGradlePlugin CRASHES if grails-app folder does not exist. Oct 2, 2023
puneetbehl added a commit that referenced this issue Oct 4, 2023
Don't throw exception if grails-app folder does not exist. Fixes #226
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant