@@ -9,7 +9,11 @@ The [1.X](https://grails.org/plugin/console) version is for Grails 2.
99
1010The [ 2.0.X] ( http://plugins.grails.org/plugin/sheehan/console ) version is for Grails 3.0 - 3.2.
1111
12- The [ 2.1.X] ( http://plugins.grails.org/plugin/sheehan/console ) version is for Grails 3.3+.
12+ The [ 2.X.X] ( http://plugins.grails.org/plugin/sheehan/console ) version is for Grails 3.3+.
13+
14+ The [ 4.X.X] ( http://plugins.grails.org/plugin/sheehan/console ) version is for Grails 4+.
15+
16+ The [ 5.X.X] ( http://plugins.grails.org/plugin/sheehan/console ) version is for Grails 5+.
1317
1418### Grails 2
1519
@@ -37,6 +41,122 @@ Add a dependency in build.gradle
3741runtime 'org.grails.plugins:grails-console:2.1.1'
3842```
3943
44+ For upgraded handler version use below version.
45+
46+ ``` groovy
47+ repositories {
48+ maven { url "https://jitpack.io" }
49+ }
50+
51+ dependencies {
52+ compile 'com.github.vsachinv:grails-console:2.2.0'
53+ }
54+ ```
55+
56+
57+ ### Grails 4+
58+
59+ Add a dependency in build.gradle
60+
61+ ``` groovy
62+ repositories {
63+ maven { url "https://jitpack.io" }
64+ }
65+
66+ dependencies {
67+ compile 'com.github.vsachinv:grails-console:4.0-M1'
68+ }
69+ ```
70+
71+ In addition if you don't want to use jitpack.io then use following github package registry:
72+
73+ ``` groovy
74+ repositories {
75+ maven {
76+ name = "GitHubPackages"
77+ url = uri("https://maven.pkg.github.com/vsachinv/grails-console")
78+ credentials {
79+ username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
80+ password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
81+ }
82+ }
83+ }
84+
85+ dependencies {
86+ compile 'org.grails.plugins:grails-console:4.0-M1'
87+ }
88+
89+ ```
90+
91+ ### Grails 5+
92+
93+ Add a dependency in build.gradle
94+
95+ ``` groovy
96+ repositories {
97+ maven { url "https://jitpack.io" }
98+ }
99+
100+ dependencies {
101+ compile 'com.github.vsachinv:grails-console:5.0-M1'
102+ }
103+ ```
104+
105+ In addition if you don't want to use jitpack.io then use following github package registry:
106+
107+ ``` groovy
108+ repositories {
109+ maven {
110+ name = "GitHubPackages"
111+ url = uri("https://maven.pkg.github.com/vsachinv/grails-console")
112+ credentials {
113+ username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
114+ password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
115+ }
116+ }
117+ }
118+
119+ dependencies {
120+ compile 'org.grails.plugins:grails-console:5.0-M1'
121+ }
122+
123+ ```
124+
125+
126+ ### Grails 6+
127+
128+ Add a dependency in build.gradle
129+
130+ ``` groovy
131+ repositories {
132+ maven { url "https://jitpack.io" }
133+ }
134+
135+ dependencies {
136+ compile 'com.github.vsachinv:grails-console:6.0-M2'
137+ }
138+ ```
139+
140+ In addition if you don't want to use jitpack.io then use following github package registry:
141+
142+ ``` groovy
143+ repositories {
144+ maven {
145+ name = "GitHubPackages"
146+ url = uri("https://maven.pkg.github.com/vsachinv/grails-console")
147+ credentials {
148+ username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
149+ password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
150+ }
151+ }
152+ }
153+
154+ dependencies {
155+ compile 'org.grails.plugins:grails-console:6.0-M2'
156+ }
157+
158+ ```
159+
40160## Usage
41161
42162Use a browser to navigate to the /console page of your running app, e.g. http://localhost:8080/{app-name}/console
@@ -117,7 +237,7 @@ Spring Security Core example:
117237grails.plugin.springsecurity.controllerAnnotations.staticRules = [
118238 [pattern:"/console/**", access:['ROLE_ADMIN']],
119239 [pattern:"/plugins/console*/**", access:['ROLE_ADMIN']], // Grails 2.x
120- [pattern:"/static/console/**", access:['ROLE_ADMIN']], // Grails 3.x
240+ [pattern:"/static/console/**", access:['ROLE_ADMIN']], // Grails 3+
121241]
122242```
123243
@@ -127,7 +247,7 @@ Another example restricting access to localhost IPs:
127247grails.plugin.springsecurity.controllerAnnotations.staticRules = [
128248 [pattern:"/console/**", access:["hasRole('ROLE_ADMIN') && (hasIpAddress('127.0.0.1') || hasIpAddress('::1'))"]],
129249 [pattern:"/plugins/console*/**", access:["hasRole('ROLE_ADMIN') && (hasIpAddress('127.0.0.1') || hasIpAddress('::1'))"]], // Grails 2.x
130- [pattern:"/static/console/**", access:["hasRole('ROLE_ADMIN') && (hasIpAddress('127.0.0.1') || hasIpAddress('::1'))"]], // Grails 3.x
250+ [pattern:"/static/console/**", access:["hasRole('ROLE_ADMIN') && (hasIpAddress('127.0.0.1') || hasIpAddress('::1'))"]], // Grails 3+
131251]
132252```
133253
@@ -137,7 +257,12 @@ grails.plugin.springsecurity.controllerAnnotations.staticRules = [
137257* [ Burt Beckwith] ( https://github.com/burtbeckwith )
138258* [ Matt Sheehan] ( https://github.com/sheehan )
139259* [ Mike Hugo] ( https://github.com/mjhugo )
260+ * [ Kamil Dybicz] ( https://github.com/kdybicz )
140261
141262## Development
142263
143264Please see [ CONTRIBUTING.md] ( CONTRIBUTING.md )
265+
266+ ## Local deployment
267+
268+ Please see [ LOCALDEPLOYMENT.md] ( LOCALDEPLOYMENT.md )
0 commit comments