Makes dealing with cookies easy. The plugin provides an injectable CookieService and Groovy extension
methods on HttpServletRequest / HttpServletResponse, so getting, setting, and deleting a cookie is a
single line of code. It is RFC 6265 compliant.
The user guide can be found here: 📚 Documentation
Add the following dependency to the build.gradle file:
dependencies {
implementation("io.github.gpc:grails-cookie:4.0.0-SNAPSHOT")
}dependencies {
implementation("io.github.gpc:grails-cookie:3.0.0")
}| Plugin version | Grails version | Java | Groovy | Coordinate |
|---|---|---|---|---|
| 4.x | 8.0.x | 21+ | 5.x | io.github.gpc:grails-cookie |
| 3.x | 7.0.x | 17+ | 4.x | io.github.gpc:grails-cookie |
| 2.x | 3.0.x | 7+ | 2.x | org.grails.plugins:cookie:2.0.5 |
| 1.x | 2.0.x | 7+ | 2.x | org.grails.plugins:cookie:1.4.0 |
Tool versions are pinned in .sdkmanrc. With SDKMAN installed:
sdk env install./gradlew buildSee CONTRIBUTING.md.