Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Oct 3, 2024
1 parent 1c77323 commit d3a6348
Showing 1 changed file with 29 additions and 35 deletions.
64 changes: 29 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
spring init -a=gs-spring-boot -g=grace.guides -n="Grace Guide for Spring Boot" --description="Spring Boot Application with Grace Plugins" --package-name=grace.guides -l=groovy --build=gradle --format=project -t=gradle-project -d=devtools,actuator,web -x
```

### Using Spring Boot 3.3.3
### Using Spring Boot 3.3.4

In this guide, I will use Spring Boot `3.3.3`, Grace `2023.0.0` is built upon version `3.0.13`, but we can upgrade it.
In this guide, I will use Spring Boot `3.3.4`, Grace `2023.0.2` is built upon version `3.0.13`, but we can upgrade it.

```gradle
plugins {
id 'groovy'
id 'org.springframework.boot' version '3.3.3'
id 'org.springframework.boot' version '3.3.4'
id 'io.spring.dependency-management' version '1.1.6'
}
ext['spring-boot.version'] = '3.3.3'
ext['spring-framework.version'] = '6.1.12'
ext['spring-boot.version'] = '3.3.4'
ext['spring-framework.version'] = '6.1.13'
group = 'grace.guides'
version = '0.0.1-SNAPSHOT'
Expand Down Expand Up @@ -51,28 +51,22 @@ tasks.named('test') {
```

### Using Gradle 8.10
### Using Gradle 8.10.2

```bash
./gradlew wrapper --gradle-version=8.10
./gradlew wrapper --gradle-version=8.10.2
```

First, import `grace-bom`, then adding the dependencies,

```gradle
dependencyManagement {
imports {
mavenBom 'org.graceframework:grace-bom:2023.0.0'
}
}
dependencies {
// Grace dependencies
implementation 'org.graceframework:grace-boot'
implementation 'org.graceframework:grace-core'
implementation 'org.graceframework:grace-plugin-api'
implementation 'org.graceframework:grace-plugin-core'
implementation 'org.graceframework:grace-plugin-dynamic-modules'
implementation 'org.graceframework.plugins:dynamic-modules:1.0.0-M1'
implementation 'org.graceframework:grace-plugin-management'
...
}
Expand Down Expand Up @@ -156,34 +150,34 @@ class GraceBootApplication implements CommandLineRunner {
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.3.3)
2024-08-23T20:27:39.293+08:00 INFO 74059 --- [ main] grace.guides.GraceBootApplication : Starting GraceBootApplication using Java 17.0.12 with PID 74059 (/Users/rain/Development/github/grace/grace-guides/gs-spring-boot/build/classes/groovy/main started by rain in /Users/rain/Development/github/grace/grace-guides/gs-spring-boot)
2024-08-23T20:27:39.294+08:00 INFO 74059 --- [ main] grace.guides.GraceBootApplication : No active profile set, falling back to 1 default profile: "default"
2024-08-23T20:27:39.677+08:00 INFO 74059 --- [ main] g.plugins.DefaultGrailsPluginManager : Total 3 plugins loaded successfully, take in 45 ms
2024-08-23T20:27:39.885+08:00 INFO 74059 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)
2024-08-23T20:27:39.890+08:00 INFO 74059 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-08-23T20:27:39.890+08:00 INFO 74059 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.28]
2024-08-23T20:27:39.911+08:00 INFO 74059 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-08-23T20:27:39.911+08:00 INFO 74059 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 598 ms
2024-08-23T20:27:40.190+08:00 INFO 74059 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 16 endpoints beneath base path '/actuator'
2024-08-23T20:27:40.219+08:00 INFO 74059 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8080 (http) with context path '/'
2024-08-23T20:27:40.228+08:00 INFO 74059 --- [ main] grace.guides.GraceBootApplication : Started GraceBootApplication in 1.06 seconds (process running for 1.332)
2024-08-23T20:27:40.229+08:00 DEBUG 74059 --- [ main] PluginsInfoApplicationContextInitializer :
:: Spring Boot :: (v3.3.4)
2024-10-03T10:03:58.393+08:00 INFO 71462 --- [ main] grace.guides.GraceBootApplication : Starting GraceBootApplication using Java 17.0.12 with PID 71462 (/Users/rain/Development/github/grace/grace-guides/gs-spring-boot/build/classes/groovy/main started by rain in /Users/rain/Development/github/grace/grace-guides/gs-spring-boot)
2024-10-03T10:03:58.394+08:00 INFO 71462 --- [ main] grace.guides.GraceBootApplication : No active profile set, falling back to 1 default profile: "default"
2024-10-03T10:03:58.799+08:00 INFO 71462 --- [ main] g.plugins.DefaultGrailsPluginManager : Total 3 plugins loaded successfully, take in 42 ms
2024-10-03T10:03:59.008+08:00 INFO 71462 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)
2024-10-03T10:03:59.014+08:00 INFO 71462 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-10-03T10:03:59.014+08:00 INFO 71462 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.30]
2024-10-03T10:03:59.037+08:00 INFO 71462 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-10-03T10:03:59.037+08:00 INFO 71462 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 624 ms
2024-10-03T10:03:59.308+08:00 INFO 71462 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 16 endpoints beneath base path '/actuator'
2024-10-03T10:03:59.340+08:00 INFO 71462 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8080 (http) with context path '/'
2024-10-03T10:03:59.352+08:00 INFO 71462 --- [ main] grace.guides.GraceBootApplication : Started GraceBootApplication in 1.091 seconds (process running for 1.4)
2024-10-03T10:03:59.352+08:00 DEBUG 71462 --- [ main] PluginsInfoApplicationContextInitializer :
----------------------------------------------------------------------------------------------
Order Plugin Name Plugin Version Enabled
----------------------------------------------------------------------------------------------
1 Core 2023.0.0 Y
1 Core 2023.0.2 Y
2 DynamicModules 1.0.0-M1 Y
3 Language 1.0.0 Y
----------------------------------------------------------------------------------------------
Language: key=en_US, title=English
Language: key=zh_CN, title=Chinese (Simplified Chinese)
Language: key=zh_TW, title=Chinese (Traditional Chinese)
2024-08-23T20:27:43.314+08:00 INFO 74059 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-08-23T20:27:43.314+08:00 INFO 74059 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2024-08-23T20:27:43.315+08:00 INFO 74059 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms
2024-10-03T10:04:21.782+08:00 INFO 71462 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-10-03T10:04:21.782+08:00 INFO 71462 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2024-10-03T10:04:21.783+08:00 INFO 71462 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms
```
### Using `plugins` Endpoint
Expand All @@ -192,8 +186,8 @@ Language: key=zh_TW, title=Chinese (Traditional Chinese)
➜ gs-spring-boot git:(main) ✗ http :8080/actuator/plugins
HTTP/1.1 200
Connection: keep-alive
Content-Type: application/json
Date: Fri, 23 Aug 2024 12:28:07 GMT
Content-Type: application/vnd.spring-boot.actuator.v3+json
Date: Thu, 03 Oct 2024 02:04:21 GMT
Keep-Alive: timeout=60
Transfer-Encoding: chunked
Expand All @@ -203,7 +197,7 @@ Transfer-Encoding: chunked
"dependencies": [],
"name": "core",
"type": "org.grails.plugins.core.CoreGrailsPlugin",
"version": "2023.0.0"
"version": "2023.0.2"
},
{
"dependencies": [],
Expand Down

0 comments on commit d3a6348

Please sign in to comment.