apache / apache/grails-core

Development environment configuration file application-development.groovy not documented

Open
#15,897 3 comments 0 reactions 0 assignees View on GitHub
relates-to:spring-security
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

### Expected Behavior

I expected application.groovy to be adequate for a development environment build, with environment blocks withing that file to distinguish code intended specifically for a build.

### Actual Behaviour

It turns out that application.groovy is ignored for a development environment build, and an application-development.groovy file is required instead. I was not able to find any documentation about this - certainly not in the Spring Security Core Plugin - Reference Documentation. I've spent an awful lot of time chasing what was going on.

### Steps To Reproduce

Using a gradle.properties file with org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M -Dgrails.env=dev

### Environment Information

MacOS 12.7.4
grailsVersion=5.3.6
groovyVersion=3.0.11
org.grails.plugins:spring-security-core:5.3.0
jdk-17.jdk
IntelliJ IDEA 2023.2.6 (Ultimate Edition)

### Example Application

_No response_

### Version

5.3.6

Contributor guide

Open the contributing guide

Research direction

Start with the Spring Security Core Plugin Reference Documentation and review the reported Grails development environment behavior for application.groovy and application-development.groovy. Document that application-development.groovy is required for a development build, including the grails.env=dev configuration, and make the expected configuration behavior clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.